Forum Moderators: phranque

Message Too Old, No Replies

blocking domain

         

keyplyr

10:11 pm on Apr 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I wish to block both: domain.net and domain.org

Would this work:

RewriteCond %{HTTP_REFERER} domain\.(net¦org)

Or can I just leave off the extensions like this:

RewriteCond %{HTTP_REFERER} domain\.

Thanks

Longhaired Genius

10:22 pm on Apr 9, 2005 (gmt 0)

10+ Year Member



Any sufficiently unique string fragment from the referrer-string will do so:

RewriteCond %{HTTP_REFERER} domain
RewriteRule ^.* - [F]

would be fine.