How to set IP Address Restriction to access Wordpress Dashboard?

Wordpress is one of the most used CMS over the world. Upon recent stats, Around 90 percent of all the hacked websites were WordPress sites. We can restrict the IP Addresses on the Wordpress Dashboard to prevent such issues.

There are 2 methods to achieve this purpose. You can add a .htaccess to restrict IP Address or you can add plugins to Block IP Address.

 

IP Address restriction with .htaccess


We can add a .htaccess file inside the wp-admin directory and add a below content. Add the IP address from which you want to allow the Wordpress admin access.

# order deny, allow
# Replace the below x.x.x.x with your IP address #
allow from x.x.x.x
deny from all

 

Plugins to restrict IP Address

 

  1. Login to Wordpress Dashboard.

  2. Click on Plugins.



  3. Click on Add New Plugin.



  1. Type WP Ban in Keyword. Install and Activate the same Plugin.



  2. Now, click on settings and hit Ban Button. Here, you can add IPs or IP Range in respective boxes as given in below screen capture.



  3. Click on Save Changes.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Deactivate Wordpress Plugins from phpMyAdmin and using FTP When Not Able to Access WP-Admin?

While doing troubleshooting for any of the websites, you might be suggested to deactivate all the...

How to Disable WordPress Pingback to Prevent Pingback Brute Force and DDoS Attacks?

WordPress has become the most popular CMS and it continuously increases its market share. On the...

How to Use WP_DEBUG?

Introduction PHP is a well known programming language used by Wordpress having its own debugging...

How To Change Your WordPress URL from phpMyAdmin?

This article will describe how to change the WordPress website URL from phpMyAdmin. You might...

How to enable/disable pingback and traceback in WordPress?

Pingback and tracebacks are link notifications which enable you to keep track when someone links...