View Single Post
Old 06-06-2006, 02:09 AM  
alan-l
Confirmed User
 
Join Date: May 2003
Location: look behind you
Posts: 2,477
how to do this? re: htaccess

So one of my servers is getting 23% of its traffic coming from Yahoo. That means around 5000 uniques a day. Great? Nope. Traffic comes from Yahoo Video, so it's 100% wasted traffic and free porn for surfers.

Now I came to this idea. AFAIK, you can't do a referrer based redirect via .htaccess redirecting to anything else than an image. This means no html. But what if you place a file parsing directive? Something like

Code:
RemoveHandler .mpg .wmv
AddType application/x-httpd-php .php .htm .html
or whatever. Is it possible? If so, is it possible to parse files this way *ONLY* when coming from some specific referrer like Yahoo? If so, how?

Assuming this can't be done, do you know of any solution to this that don't imply to block Yahoo? I mean, keeping the traffic but instead of serving the videos, just send the surfer to a page?
alan-l is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote