Deny access to one file

Emers emers at euro-net.pl
Wed Jan 16 22:01:53 MSK 2008


Hi there.

I was trying to deny access to specified file for several ip ranges, but 
it goes nothing. Does anyone can help me? My location directive is as 
follow:

server {
   ...
   root            /home/phpbb/public_html;
   ...
   location ^~ /includes/confirm_register\.php {
      deny    192.168.0.0/16;
      deny    123.123.123.0/24;
      allow   all;
    }
}

"confirm_register.php" file in "includes" directory can't be accessable 
for several ip ranges.

-- 
Regards.

Emers





More information about the nginx mailing list