Having a listable directories on your site sometimes is useful. However, some times it can be considered a security issue. No, matter which option you prefer you can control this behavior of your site using 1 simple line:
Options +Indexes
The above line enables Directory listing.
Options –Indexes
The above disables directory listing for your web site.
The .htaccess file gives more then simply enabling and disabling of a directory listing. With .htaccess file you can control which files to be ignored when creating a directory list. For example:
IndexIgnore *.gif *.zip *.txt
Will make the apache server to skip all gif, zip and txt files from the directory list. Convenient, isn’t it.
I need help so much. I have been having so much trouble trying to ban this one person from coming to my site and nothing works. I am at my wits end. I have used this 207.14.163.0 - 207.14.163.255 and this person is still coming on can you help me understand what I am not doing for this to happen, I have read all info in this and can not understand what I am doing wrong. Thank you so much hope to hear something ASAP to ban this person
i have siimply uploaded the file .htaccess in my server after writting the code but also it is not blocking ip address should i do somthing more to make run it properly
localhost/test/includes/. and working in apache for windows 2000.
But its not working and user can see the list of files inside folder "inlcudes".
i am working in bank and currently working on localhost.
Sir/ Mam if u have any suggestion for me i will be thanksfull for this purpose.