block google app

lists at lazygranch.com lists at lazygranch.com
Wed Jun 21 19:40:29 UTC 2017


I'm sending 403 responses now, so I screwed up by mistaking the fields
in the logs. I'm going back to lurking mode again with my tail
shamefully between my legs.          

This code in the image location section will block the google app:
------------
if ($http_user_agent ~* (com.google.GoogleMobile)) {
           return 403;
         }
---------

403 107.2.5.162 - - [21/Jun/2017:07:21:08 +0000] "GET /images/photo.jpg HTTP/1.1" 140 "-" "com.google.GoogleMobile/28.0.0 iPad/10.3.2 hw/iPad6_7" "-"





More information about the nginx mailing list