Forum Moderators: phranque

Message Too Old, No Replies

Referrer Redirect

         

smisguy

4:12 pm on Sep 24, 2005 (gmt 0)

10+ Year Member



I've looked through the forums for this answer, so please forgive if this has already been answered.

What I'm trying to do in my .htaccess file is block certain referrers, i.e. links to my sites from certain message boards/blogs/websites, etc, and redirect it to a splash page.

Thus far, the ReWrite conditions I've used either don't work or are ignored.

Help?

jdMorgan

10:11 pm on Sep 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



smisguy,

Welcome to WebmasterWorld!

Please post your code so we can discuss it.

Jim

smisguy

10:20 pm on Sep 24, 2005 (gmt 0)

10+ Year Member



RewriteCond %{HTTP_REFERER}!^http://bannedsite.com/.*$ [NC]
RewriteRule .*\.(jpg¦jpeg¦gif¦png¦bmp¦html¦htm)$ [mysite.com...] [R,NC]

Hi, thanks! There's the portion of the code that pertains to the attempt at bouncing back referers.