How To Block Referrer...

liunx

Guest
I figured I would pose the question while I search <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> <br /><br />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.<br /><br />Thanks<br /><br />-,^^,0<!--content-->
Try adding this to your .htaccess file;<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->RewriteEngine On <br />RewriteCond %{HTTP_REFERER} ^http://yahoo.com [NC,OR] <br />RewriteCond %{HTTP_REFERER} ^http://www.yahoo.com [NC,OR] <br />RewriteCond %{HTTP_REFERER} ^http://search.yahoo.com [NC] <br />RewriteRule /* http://www.google.com/ [R,L]<!--c2--></div><!--ec2--><br /><br />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.<br /><br />I will see if I can find something more specific.<br /><br />BTW, this will send them to google. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /><!--content-->
Has possiblities....... thanks. I can't really find anything.<br /><br />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.<br /><br />Do a Yahoo search for ' mr skin ' and you'll see what I mean.<br /><br />Mine is the song by Spirit, #2 listing. The #1 listing must have recently added some new um, "material". Yuck!<!--content-->
 
Back
Top