Place a file called index.php
in that directory with the following content:
<?php
// Silence is golden.
?>
You can write that in Notepad and save and upload through FTP and rename on the server.
Thread Starter
karanw
(@karanw)
This isn’t a humour forum.
If your question is that you want to know how to prevent a directory listing being shown when browsing to certain directories, putting an index.php within those folders as henkholland suggests will prevent the directory contents from being listed. However if the issue is something else, can you express it in better detail?
Quite often you can activate and deactivate directory listing in your host’s control panel.
Yes, and I just copied the standard protecting index.php
for you that comes with even my newest 2.9.1 installation. Check a fresh 2.9.1 pack: it is there in wp-content so, allthough I love a joke, this was not my joke.