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

Options -Indexes

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

Options -Indexes

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


CHATGPT USEFUL FEATURE: TEMPORARY CHAT

CHATGPT USEFUL FEATURE: TEMPORARY CHAT

Everyday use of ChatGPT naturally trains you to think in threads. You ask a question, you get an answer, you refine the prompt, and the conversation accretes context. It’s one of the reasons ChatGPT feels more like a companion than a search box: it remembers what you said so it can respond appropriately next time […]

read more
HOW TO GET FREE UPGRADE TO PERPLEXITY.AI PRO FOR 12 MONTHS AND TESTING PRO FEATURES

HOW TO GET FREE UPGRADE TO PERPLEXITY.AI PRO FOR 12 MONTHS AND TESTING PRO FEATURES

If you spend time researching, comparing, or synthesising information online, you have probably encountered Perplexity.ai — a research-focused assistant that blends large language models with live web search and citation trails. The Pro plan supercharges that experience with priority access to powerful models, higher usage limits, and premium capabilities baked directly into the interface. Right […]

read more

Like our Page