Answer the question
In order to leave comments, you need to log in
Nginx blocking wp-login not working?
Greetings
There is nginx version 1.16.1
There is the latest WP
AND a rule that should limit admin login and wp-login requests to only one ip.
But this does not work for the wp-login.php file. The bots keep pummeling him.
Please tell me where is the mistake?
location ~ ^/(wp-admin|wp-login\.php) {
try_files $uri $uri/ /index.php?$args;
index index.html index.htm index.php;
allow 10.10.10.10;
deny all;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question