This is tutorial how to protect wp-admin wordpress with Nginx on CentOS to securing your wp-admin area by limiting IP access.
Edit Nginx Vhost configuration file:
# nano /etc/nginx/conf.d/yourvhost.conf
Drop these lines into nginx vhost config file:
location /wp-admin/ {
error_page 403 http://yourdomain.com/;
allow 1.2.3.4;
deny all;
}
Change 1.2.3.4 with your ip to access WordPress
How to Protect wp-admin Wordpress with Nginx on CentOS
4/
5
Oleh
Admin