Welcome! Log In Create A New Profile

Advanced

Hide Wordpress Page

Posted by danny13_33 
Hide Wordpress Page
September 15, 2016 03:25PM
Hello,

I have a wordpress site that I would like to restrict access to the admin page. The server sits in AWS behind an ELB. I am setting up the location directive in my .conf file between the server {}'s. The config that I have set is not working as I can still access the page from an ip address which should be denied.

Can someone please give a look and give some guidance? Thank you!

location ~ ^/(wp-admin\.php) {
real_ip_header X-Forwarded-For;
set_real_ip_from <my elb ip address>;
allow <my office ip address>;
deny all;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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