How To Enable Wordpress Admin Area Access For Your IP Address

Locking down your Wordpress admin area so that only you have access to it is a great, easy to implement way of increasing the security on a Wordpress based site. Simply follow the instructions below to allow access to the Wordpress admin area for your IP address only.

1. Find out what your IP address is by visiting


2. Edit the .htaccess file in the directory that contains the Wordpress site you wish to access, and add the following code to the bottom of the file, replacing the red text with your own IP address

<Files ~ "^wp-login.php">
Order deny,allow
Deny from all
Allow from x.x.x.x


If your ISP has provided you with a dynamic IP address (one that changes regularly), you can either manually update the code to include your new IP, or you can use the syntax found in this guide to allow a range of IP addresse.

  • 48 Users Found This Useful
Was this answer helpful?

Related Articles

How To Increase The Wordpress File Upload Size

You increase the Wordpress file upload size for your websites from within your cPanel control...

Wordpress Security Tips

As of February 2017, over 24% of the worlds websites are being powered by Wordpress....

How To Increase The Wordpress Memory Limit

You increase the Wordpress memory limit for your websites from within your cPanel control panel...

How To Disable XML-RPC in Wordpress

The XML-RPC function in Wordpress is usually used to make remote posts to Wordpress installations...

How To Reduce Wordfence CPU Usage

Wordfence is a very useful Wordpress plugin, and is used by a lot of clients to increase the...