Welcome! Log In Create A New Profile

Advanced

block google app

June 20, 2017 08:38PM
I would like to block the google app from directly downloading images.

access.log:

200 186.155.157.9 - - [20/Jun/2017:00:35:47 +0000] "GET /images/photo.jpg HTTP/1.1" 334052 "-" "com.google.GoogleMobile/28.0.0 iPad/9.3.5 hw/iPad2_5" "-"


My nginx code in the images location:

if ($http_referer ~* (com.google.GoogleMobile)) {
return 403;
}

So what I am doing wrong?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

block google app

gariac June 20, 2017 08:38PM

Re: block google app

Robert Paprocki June 20, 2017 08:50PM

Re: block google app

gariac June 20, 2017 09:36PM

Re: block google app

Robert Paprocki June 20, 2017 09:48PM

Re: block google app

gariac June 20, 2017 11:58PM

Re: block google app

gariac June 21, 2017 03:14AM

Re: block google app

gariac June 21, 2017 03:42PM

Re: block google app

jeffdyke June 22, 2017 10:48AM

Re: block google app

Richard Stanway June 22, 2017 11:04AM

Re: block google app

jeffdyke June 22, 2017 11:46AM

Re: block google app

gariac June 22, 2017 11:52AM

Re: block google app

pbooth June 22, 2017 03:18PM

Re: block google app

gariac June 22, 2017 05:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 157
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready