Forum Moderators: phranque

Message Too Old, No Replies

google translation works within my network but not outside

         

broniusm

9:03 pm on Jun 15, 2006 (gmt 0)

10+ Year Member



Does Google Translation do some http_referer check that perhaps keeps a web-page linked url from being translated whereas a directly GET'd request is honored?

I have a link directly into google's automatic translation tool without the frames and all. It's based on a clever .htaccess example online that rewrites an incoming url with a -es (like faq.php-es) to the google translate url.

I was riding on cloud 9 with its success and acceptance while still at work, but when I checked it from home (and other non-work networks), I saw that only a directly written url (www.mydomain.com/faq.php-es) would translate: a click from the english page (faq.php) which href's a faq.php-es causes a refresh and the original english faq.php comes up!

I thought, ok, something hokey about my htaccess.. So I circumvented the fanciness of mod_rewrite altogether and created the href on the page to simply point directly into the translation service-- same results: behind our firewall, the page translates a-ok; outside the firewall, the tranlation doesn't happen at all.

broniusm

1:48 pm on Jul 3, 2006 (gmt 0)

10+ Year Member



I have tested disabling HTTP_REFERERS (in firefox about:config, set network.http.sendRefererHeader to 0), and my translation works. This verifies to me that Google is not translating something that came from a referred page.

Is there a way server-side in php to force a given outbound page not to get the referer?

thanks