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 re-direction based on referer, how ? (https://gfy.com/showthread.php?t=227225)

biskoppen 01-28-2004 05:39 AM

.HTACCESS re-direction based on referer, how ?
 
The thing is .. I have some galleries which Google listed in some good positions .. but I can't just re-direct the traffic from them because they are galleries .. and the TGPS would ofcourse ban me :)

But can I somehow make a .HTACCESS file in that folder that re-directs all traffic from GOOGLE to a sponsor instead of the gallery ?

And would that be wise ?

just a punk 01-28-2004 05:43 AM

Looks like a good idea because this should not violate the general TGP rules.

Anothers 01-28-2004 05:48 AM

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www|directory)?\.google\.com
RewriteRule .* http://www.whereyouwantit.com [R,L]


redirect from google search and google directory

Edit:
you can tweak it a little for country specific google domains like google.ca google.de etc. etc.

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://(www|directory)?\.google\.[a-z]{2,3}/
RewriteRule .* http://www.whereyouwantit.com [R,L]

this one should be OK

biskoppen 01-28-2004 05:59 AM

Thanks dude

biskoppen 01-28-2004 06:05 AM

Anothers,

<< RewriteEngine on
<< RewriteCond %{HTTP_REFERER} ^http://(www|directory)?\.google\.com
<< RewriteRule .* http://www.whereyouwantit.com [R,L]

It doesn't work .. if I make a .HTACCESS with the above and place it in the folder I can't load any of the HTML files in it (Not permitted)

?


All times are GMT -7. The time now is 07:32 AM.

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