homepage Welcome to WebmasterWorld Guest from 107.20.37.62
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess, blocking online translation
forbid google.com/translate and bable.altavista.com and etc
steven mheakyle




msg:3180944
 5:44 am on Dec 7, 2006 (gmt 0)

how do we code this in .htaccess to forbid online translation of my website. thanks

 

appi2




msg:3180959
 5:59 am on Dec 7, 2006 (gmt 0)

Make sure you test first, I may be wrong!

RewriteEngine On

#If referrer contains babelfish
#Send 403 forbiden

RewriteCond %(HTTP_REFERER) (babelfish) [NC]
RewriteRule .* - F

steven mheakyle




msg:3181005
 7:01 am on Dec 7, 2006 (gmt 0)

it wont work tried that one already.
anyway thanks.

anybody can help me. TY

appi2




msg:3181029
 7:38 am on Dec 7, 2006 (gmt 0)

Whats the referer string in the logs?
Noticed google used http ://ip/translate_c
Just use whatever the referer is.

phranque




msg:3181229
 12:02 pm on Dec 7, 2006 (gmt 0)

i thought it might be useful to refer to this similar/simultaneous thread:
[webmasterworld.com...]

steven mheakyle




msg:3181351
 2:18 pm on Dec 7, 2006 (gmt 0)

my solution:

Options +FollowSymLinks
RewriteEngine on

RewriteCond %{HTTP_USER_AGENT} ^ETS [OR]
RewriteCond %{HTTP_USER_AGENT} "translate.google.com" [OR]
RewriteCond %{HTTP_REFERER} babelfish.altavista\.com [OR]

RewriteRule /*$ [yahoo.com...] [L,R]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved