Truly seen this, by testing it myself, on some websites. That is the right way to prevent viewers in addition to guests from about to a directory, like http: //www. yoursite. com/images/, and getting of which basic HTML number page that allows you to browse throught he / she files. I need it it gives a awesome " access denied" site instead
I think this is done inside cpanel or anything, just not convinced where…
Decide to put an index. html file within the directory. Users are certain to get that page besides seeing the service structure. They will however be capable to directly browse into the images (if many people know the names).
Employ. htaccess instead…
… provided you’ve got a host that can handle it (i. at the., not a n00b free one).
Nicely, n00b hosts might go kiss: banana: ‘s ass.
Grr… WHEN I hate n00bs, specially n00b hosts and also n00b scripters…
Put this from a. htaccess file throughout whatever directory you’re looking for this to impact:
This spins off auto-indexing, that (apparently) is with by default during your host.. htaccess rules inherit so if you put this with your root HTML directory it might apply to just about all subdirectories.