Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
formmail.pl Modification for .htaccess request to path cgi-sys nativenewyorker
key_master had posted the following last summer:
SetEnvIfNoCase Request_URI formmail ban
<Files ~ "\.cgi$¦\.pl$"> order deny,allow deny from env=ban </Files>
Until now it was stopping all requests to cgi-
bin for formamail with a 301 Forbidden. However, requests to cgi- sys are passing through with a code 200. Does anyone have any ideas about how to modify the code above for .htaccess?
Thanks in advance,
Do you by chance have this .htaccess file in your cgi-bin directory? If so, it would only affect files/requests in that directory.
If so, add it to the cgi-sys directory also.
From what I understand about .htaccess, it can only be placed in the root directory. As I mentioned, it has worked fine stopping requests to cgi-bin. Surprisingly, there is no cgi-sys directory.
.htaccess affects the directory it is in (which can be any directory) and directories below it.
Not sure on your original question, hope someone can answer that for you. Looks to me like it should work. If there is no cgi-sys dir then they should get a 404 anyway.
I meant 403 Forbidden, not 301.
Anyone have any suggestions on how to ban access to cgi- sys?