Forum Moderators: phranque

Message Too Old, No Replies

Block url partition by .htaccess

         

simonvlc

9:02 pm on Nov 13, 2005 (gmt 0)

10+ Year Member



Hello,

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.

jdMorgan

10:17 pm on Nov 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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