+91 88 00 563434 sales@webhostingpeople.net

Our Knowledge Base Articles

Company Blog

How to Restrict IP Addresses from Accessing WordPress Dashboard?

You are here:

WordPress is the most well-liked CMS and the variety of installations retains rising. The recognition of WordPress makes it a simple goal for hackers.. To keep away from such points, you may defend your WordPress dashboard by limiting sure IP addressesss.

You may add the next code to your .htaccess file contained in the wp-admin listing.

order deny,permit

# Substitute the beneath x.x.x.x along with your IP handle #

permit from x.x.x.x

deny from all


There are additionally plugins that serve the identical goal.


WP Ban

WP ban lets you block or ban particular IP handle or a complete IP vary. It can show a customized ban message when the banned IP/ vary tries to go to your weblog. It can additionally preserve a report of what number of instances the restricted IP handle or Ip ranges go to your weblog.

1) Set up and activate the WP Ban plugin.

Restrict Ip Address


2)  In your WordPress dashboard, choose the Ban menu underneath settings.

Restrict Ip Address


You may enter the IP handle, IP handle vary, Banned message, and so on. As soon as you’re finished customizing, save adjustments on the backside.


IP Ban

IP Ban is a safety plugin used for shielding web sites from undesirable IP addresses or person brokers. You may add IP addresses or person brokers creating your personal blacklist.

1) Set up and activate IP Ban plugin.

Restrict Ip Address


2) In your WordPress dashboard, choose the easy IP Ban menu underneath settings.

Restrict Ip Address


You may enter the IP handle, Consumer Agent Record that you just need to ban. Chances are you’ll specify a redirect url, when a person from a banned ip/person agent accesses your website, the person will probably be redirected to the required URL.

You may as well set up plugins like Restrict Login Makes an attempt, Easy Safety, and so on to guard your WordPress dashboard. Restrict Login Makes an attempt plugin permits so that you can block IP handle from making additional makes an attempt after a specific restrict is reached. Easy Safety Plugin for WordPress is an Entry Log to trace Logins and Failed Login Makes an attempt for the admin space of your WordPress web site.


If you happen to want any additional assist please contact our help division.



Leave a Comment