Help pls: my mod_rewrite image hotlink protection also excludes Google translate

Discussion in 'Apache' started by hans, Dec 9, 2008.

  1. #1
    I have lots of traffic from various Google translate services. All these page/URL-translate servers from Google come from a Google-IP and never from any G-domain.

    Hence for some reason ALL pages displayed on Google translate servers always display my hotlink replacement banner instead of the original image.

    Similar situation for traffic coming FROM other G-IP based services.

    here a complete line as logged in my apache2.2 error_log

    and here below my current .htaccess hotlink relevant code:

    FYI - the "php" in above image protection rule is for the protection of my Blog-banner that is random selected by a php script - this part works.

    all hotlink protection works perfectly - except for all Google ( and may be Y ) IP based services that are considered hotlinkers because NOT in the exclude list of my code above.

    I would love to have in the "allowed sites" section of above rewrite code a code that allows sites with

    http://74.125.47.100/translate_c

    RewriteCond %{HTTP_REFERER} !^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/translate_c [NC]

    this above is my current trial/error solution that seems to work. but unsure if correct and secure.


    any help or suggestions for improvements and security arfe MOST welcome
     
    hans, Dec 9, 2008 IP