Restricting access by public IP blocking remote content
pkris
nginx-forum at forum.nginx.org
Tue May 8 20:28:54 UTC 2018
As the subject states when I restrict access to a subdirectory via IP,
remote content like Google fonts, and Favicons are blocked.
This of course makes sense, but without adding those hostnames to my
admin-ip's file I use to allow IP's (explained below), can remote content
like this be allowed by the actual web traffic I'm attempting to restrict to
my VPN IP be filtered?
/etc/nginx/sites-enabled/default:
location /billingadmin {
include includes/admin-ips;
deny all;
}
/etc/nginx/includes/admin-ips:
#LAN
allow XXX.XXX.XXX.XXX;
#VPN
allow XXX.XXX.XXX.XXX;
allow XXX.XXX.XXX.XXX;
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279725,279725#msg-279725
More information about the nginx
mailing list