Welcome! Log In Create A New Profile

Advanced

Re: Allow and Deny IP's

Francis Daly
February 06, 2018 06:58PM
On Tue, Feb 06, 2018 at 01:02:22AM +0100, Ph. Gras wrote:

Hi there,

> location ~* wp-login\.php$ {

> 185.124.153.168 - - [05/Feb/2018:21:36:12 +0100] "GET /wp-login.php HTTP/1.1" 200 1300 "-" "Mozilla/5.0 (Windows NT 6.0; rv:34.0) Gecko/20100101 Firefox/34.0"

> Me too :-(

Have you any reason to believe that this location is used to handle this request?

$ nginx -T | grep 'server\|location'

will possibly give a useful hint in that direction.

For what it is worth, if I use:

==
server {
listen 8888;
location /x/ {
allow 127.0.0.1;
deny all;
}
}
==

then

$ curl -i http://127.0.0.1:8888/x/

gives me http 200 (html/x/index.html exists), while

$ curl -i http://127.0.0.2:8888/x/

gives me http 403.

So - "works for me". What do you see, when you test that?

What parts of your current config do you have to add, in order for that
test to fail for you?

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Allow and Deny IP's

Kaushal Shriyan February 05, 2018 01:28PM

Re: Allow and Deny IP's

ph.gras February 05, 2018 07:04PM

Re: Allow and Deny IP's

Kaushal Shriyan February 06, 2018 09:58AM

Re: Allow and Deny IP's

Francis Daly February 06, 2018 06:58PM

Re: Allow and Deny IP's

ph.gras February 07, 2018 01:30PM

Re: Allow and Deny IP's

Francis Daly February 08, 2018 03:26AM

Re: Allow and Deny IP's

Francis Daly February 06, 2018 07:04PM

Re: Allow and Deny IP's

Kaushal Shriyan February 07, 2018 11:28AM

Re: Allow and Deny IP's

Francis Daly February 07, 2018 11:38AM

Re: Allow and Deny IP's

jasonw February 07, 2018 03:14PM

Re: Allow and Deny IP's

ph.gras February 07, 2018 05:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready