How to disable directory browsing in WAMP

June 3, 2015   /   by Marco  / Categories :  Technology

If you’re using WAMP and are browsing a folder without an index.php or index.html file, the WAMP server will display all the files contained in that folder. Here’s an example:

WAMP Display Directory Listing

 

This can become a security risk as the visitor is able to browse and download all the files. In order to disable this you need to edit the httpd.conf file which can be found here: C:\wamp\bing\apache\apache[version]\conf\httpd.conf

Look for the line

[codesyntax lang=”php”] [/codesyntax]

All you need to do is then add the # infront of the line so it looks like this:

[codesyntax lang=”php”] [/codesyntax]

WAMP Disable Directory Browsing

 

Restart WAMP by clicking on the WAMP icon and selecting restart all.

WAMP Restart

This will then disable the directory as shown below:

WAMP Forbidden access

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


HOW TO REMOVE WINDOWS 10 WELCOME SCREEN

HOW TO REMOVE WINDOWS 10 WELCOME SCREEN

Have you been getting the blue Windows 10 Welcome screen? It normally pops up after installing Windows 10 or after a Windows 10 update. I’ve been receiving a lot of questions relating to this and there are a few ways to remove it. One way it to change the settings in the registry setting but […]

read more
6 REASONS TO SYNCHRONIZE YOUR DATA

6 REASONS TO SYNCHRONIZE YOUR DATA

Technology changes and complex business requirements might compromise product data, impacting negatively on the company. Data synchronization ensures that information across the production chain is consistent. BizCaps achieves such streamlining with tools that collect data and sync it from the supplier to the consumer, increasing efficiency. Here are six reasons you require data synchronization. Increased […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

site auditing tools