boxturt Posted November 11, 2004 Posted November 11, 2004 I figured I would pose the question while I search I've one html file that's receiving an incredible amount of traffic - referred directly from Yahoo search results. Is there a way to ban this for my one file? Seems to me there is a way but I would be merely guessing if I tried to do it from my limited knowledge. Thanks -,^^,0 Quote
TCH-Rob Posted November 11, 2004 Posted November 11, 2004 Try adding this to your .htaccess file; >RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://yahoo.com [NC,OR] RewriteCond %{HTTP_REFERER} ^http://www.yahoo.com [NC,OR] RewriteCond %{HTTP_REFERER} ^http://search.yahoo.com [NC] RewriteRule /* [URL=http://www.google.com/]http://www.google.com/[/URL] [R,L] This will not work for one file but from anything coming from Yahoo or their search service unless you had that file in a folder of it's own and this .htaccess was in that folder too. I will see if I can find something more specific. BTW, this will send them to google. Quote
boxturt Posted November 11, 2004 Author Posted November 11, 2004 Has possiblities....... thanks. I can't really find anything. Right now I have renamed the file and put up a page with a manual redirect in it's place. I am pretty sure people are getting to this page expecting something else. Do a Yahoo search for ' mr skin ' and you'll see what I mean. Mine is the song by Spirit, #2 listing. The #1 listing must have recently added some new um, "material". Yuck! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.