Welcome! Log In Create A New Profile

Advanced

IP block a folder with subfolders and file

Posted by weesitee 
IP block a folder with subfolders and file
April 24, 2011 01:26PM
Hello,

I am trying to block a folder by ip(Oscommerce's admin folder FYI), but I can not find the right regual expression(I really dont get it) for blocking /admin with subfiles and subfolder and subfolders subfiles. So can anyone point me in the right direction? It would be highly appreciated.
Re: IP block a folder with subfolders and file
April 26, 2011 04:50AM
Should be

location ~ ^/admin/ {
allow x.x.x.x;
deny all;
}



Edited 2 time(s). Last edit at 04/26/2011 04:51AM by Murena.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 160
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