View Single Post
Old 09-24-2002, 12:41 PM  
Mastercross
Confirmed User
 
Industry Role:
Join Date: May 2002
Posts: 151
Help to figure out how to redirect by language/country

Hi everyone,

I am trying to filter out some low converting traffic, so I came accross this line that I can use in my .htaccess

RewriteEngine on
RewriteCond %{ENV:HTTP_ACCEPT_LANGUAGE} !^en
RewriteRule .* http://GoAway.com/ [R]

the problem is that I am already using anti-hotlink RewriteEngine in this form

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*mydomain.com.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|asf|wmv|avi|mpg|mpeg)$ - [F]

Can someone tell me how can these two blocks stay in .htaccess together?

Better yet, if someone know how to filter out unproductive russian and asian traffic, please feel free to educate me. :-)

Thanks in advance.
Mastercross is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote