![]() |
![]() |
![]() |
||||
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 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Redirecting ALL image traffic...how to?
so, I tried earlier and all everyone came back with was frame busters, which doesn't suit my needs
I have tons of 404 image traffic....my blog used to be all rss feeds, I revamped it and changed the permalink structure and now I have TONS of google, ask jeeves and msn image traffic... how can I set my htaccess up to redirect all image traffic to my main page? so, when someone goes here http://images.ask.com/fr?q=Rate+My+P...age%253D1&qt=0 it automatically pulls them out of the frame and to my main site....the image is from an rss feed, so when they click it they will go to it, but I wanna bust them out of the frame and to my home page, not the 404 page |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,112
|
This should work.
1) create file called googleimages.php in your root dir <html><head><title>Loading Site...</title> <script language="Javascript"> <!-- if (top.location != location) top.location.href = 'http://<? print $_SERVER["SERVER_NAME"] . $url;?>'; //--> </script> </head> <body><center><a target=_top href="http://<? print $_SERVER["SERVER_NAME"] . $url; ?>">Click Here To Load The Site</a></center> </body></html> 2) add this to .htaccess: RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://images.google RewriteCond %{REQUEST_URI} !googleimages.php RewriteCond %{REQUEST_URI} (.*) RewriteRule /* /googleimages.php?url=%1 [R,L] You can edit the php file to send em to your root instead if you want, and of course add the other image search services to the .htaccess. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
Quote:
if you want the hits to send to your main page then just change the line in googleimages.php that says http://<? print $_SERVER["SERVER_NAME"] . $url; ?> to http://www.domain.com edit: hit me up to see it in action |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
THANKS! I was trying to find the thread you posted this in the other day and didn't have any luck this is EXACTLY what I needed |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
nevermind, I spoke before I tried it, it works perfectly
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
weird, doesn't seem to work with http://images.ask.com/
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Sep 2006
Location: internets
Posts: 6,954
|
fuzebox to the rescue!!
thanks =) very useful.
__________________
Teen Porn Models / Solo Girls |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
and you did add to the list of conditions:
Code:
RewriteCond %{HTTP_REFERER} ^http://images.ask |
![]() |
![]() ![]() ![]() ![]() ![]() |