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)
-   -   Is this .htaccess code correct ? (https://gfy.com/showthread.php?t=477868)

Adult Site Traffic 06-07-2005 11:05 AM

Is this .htaccess code correct ?
 
To redirect surfers who hit any link to my-site.com on a referring site (some-referer.com) to be redirected to my-site.com/403.html?

Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://www.some-referer.com/.*$ [NC]
RewriteRule ^/403.html [PT]

Thank you.

Adult Site Traffic 06-07-2005 11:08 AM

Oh, would I also need to use:

Code:

RewriteCond %{HTTP_REFERER} ^http://www.some-referer.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://some-referer.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} ^http://subdomain.some-referer.com/.*$ [NC]

?

TY

datezonline 06-07-2005 11:09 AM

no...........

Adult Site Traffic 06-07-2005 11:13 AM

Quote:

Originally Posted by datezonline
no...........

Why ?

.

Adult Site Traffic 06-07-2005 11:59 AM

Bump....

Lycanthrope 06-07-2005 01:54 PM

You can't show them something on your site if you are telling them that they can not see your site. Either send them to another domain, dialer page or whatever.

Try this: (This will handle the domain / all subdomains / and all TLDs for "some-referer" ;) .

Code:

RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*(-|.)some-referer(-|.).*$ [NC]
RewriteRule ^(.*)$ http://www.forum-leeches-here.com [R,L]



All times are GMT -7. The time now is 09:06 AM.

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