Jump to content

Recommended Posts

Posted

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

Posted

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. :)

Posted

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...