From: Rich Bowen
-RewriteCond %{HTTP_REFERER} !^$
+RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !www.example.com [NC]
-RewriteRule \.(gif|jpg|png)$ - [F,NC]
+RewriteRule \.(gif|jpg|png)$ - [F,NC]
@@ -89,9 +89,9 @@ RewriteRule \.(gif|jpg|png)$ - [F,NC]
an alternate image instead.
-RewriteCond %{HTTP_REFERER} !^$ +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule \.(gif|jpg|png)$ /images/go-away.png [R,NC] +RewriteRule \.(gif|jpg|png)$ /images/go-away.png [R,NC]@@ -99,9 +99,9 @@ RewriteRule \.(gif|jpg|png)$ /images/go-away.png [R,NC] other site.
-RewriteCond %{HTTP_REFERER} !^$ +RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !www.example.com [NC] -RewriteRule \.(gif|jpg|png)$ http://other.example.com/image.gif [R,NC] +RewriteRule \.(gif|jpg|png)$ http://other.example.com/image.gif [R,NC]@@ -294,7 +294,7 @@ RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L] we just wish to redirect back to where they came from, a "-" is placed in the map: -
+
##
## deflector.map
##
@@ -302,7 +302,8 @@ RewriteRule ^ ${deflector:%{HTTP_REFERER}} [R,L]
http://badguys.example.com/bad/index.html -
http://badguys.example.com/bad/index2.html -
http://badguys.example.com/bad/index3.html http://somewhere.example.com/
-