Forum Moderators: phranque
Is it possible to block the access to a path of your server by .htaccess?
Recently I could see in my logs that someone is requesting an url of this type in a recurrent manner.
http://example.org/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/blog/
The idea is to block that path. Can it be done?
Thanks all, Simon.
Yes, there are several ways to do it. You could use a combination of mod_setenvif and mod_access, or you could use mod_rewrite. Take a look at the Apache documentation [httpd.apache.org] for those modules, write some code and test it, and if you have problems, we can help you get it working.
Some more links and information on how to get the most out of this forum are in our Charter [webmasterworld.com].
Jim