View Single Post
Old 01-06-2005, 01:06 PM  
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Quote:
Originally Posted by johnnyhey
i've added this

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^.*fukser\.com.*$
RewriteRule /* http://www.candydreams.com [R,L]
^.*fukser\.com.*$ is bad.

What if the fuskering site is actually called www.fusker.mysite.com, or fusker.mysite.com? Yours will only work for an actual *fusker.com.

Also, the "beginning of string character" - the "^" - isn't stricly needed. if you include it, apache will evaluate it. For a referer string, it's not needed - it will always use the "beginning" of a referrer string unless you tell it not to. The same goes for the "end of string" - the "$". I left it in mine - no sure why
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote