location / {
proxy_pass http://127.0.0.1:81/; # Apache
include /etc/nginx/proxyall;
}
set $a "";
if ( $http_referer ~* (admin|moderate) ) {
set $a 1;
}
if ($remote_addr !~ 192.192.23.93) {
set $a 1$a;
}
if ($a = 11) {
return 403;
}