You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Admin-Stress <me...@yahoo.com> on 2004/07/08 22:44:02 UTC

[users@httpd] Help with mod_rewrite

Hi,

I want to redirect/block some HTTP_REFERER using apache 2.0.48.

Here is an example of the HTTP_REFERER :

     http://www.absba.org/vb/showthread.php?threadid=11234

I got it from apache log file. But I just want to block every connection from absba.org .

And here is the mod_rewrite config in my httpd.conf :

   RewriteEngine on
   RewriteLogLevel 3
   RewriteLog "/home/www/mywebsite.com/logs/rewrite.log"
   RewriteCond %{HTTP_REFERER} ^http://www.absba.* [OR,NC]
   RewriteRule ^(.*)$ http://www.redirected.org/

I tried several other RewriteCond but no luck 
I dont quite understand with regular expression

please help.

Thanks


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org