GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HTACCESS problem - please help a brotha out (https://gfy.com/showthread.php?t=321164)

alexg 07-02-2004 02:32 PM

HTACCESS problem - please help a brotha out
 
I use this to redirect traffic coming from a certein domain but it doesn't work..any idea why?

RewriteCond %{HTTP_REFERER} ^http://www.eroman.ru/.*$ [NC]
ReWriteRule .* http://www.badsite.com [R,L]

RewriteCond %{HTTP_REFERER} ^http://eroman.ru/.*$ [NC]
ReWriteRule .* http://www.badsite.com [R,L]




what htaccess code i should use to block hotlinking from a certein domain, and redirect it to a certein url?

Lycanthrope 07-02-2004 03:50 PM

RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com.*$ [NC]
RewriteRule ^.*$ http://www.badsite.com [R,L]

alexg 07-02-2004 03:51 PM

Quote:

Originally posted by Lycanthrope
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com.*$ [NC]
RewriteRule ^.*$ http://www.badsite.com [R,L]

thanks
I'll give it a try


All times are GMT -7. The time now is 08:05 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123