![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
.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 ? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,386
|
Looks like a good idea because this should not violate the general TGP rules.
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
Thanks dude
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Mar 2003
Location: Very small penis
Posts: 5,809
|
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) ? |
![]() |
![]() ![]() ![]() ![]() ![]() |