httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Admin-Stress <meerka...@yahoo.com>
Subject [users@httpd] Help with mod_rewrite
Date Thu, 08 Jul 2004 20:44:02 GMT
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


Mime
View raw message