WebHostingPeople Blog

  • Domains
    • Shared Hosting

  • Cloud VPS
  • Servers
    • Client Area Login

How Can We Help?

How to Restrict IP Addresses from Accessing WordPress Dashboard?

You are here:

WordPress is the most popular Content Management System (CMS), and its installation count is constantly increasing. The widespread use of WordPress makes it an easy target for malicious hackers. To avoid such issues, you can secure your WordPress dashboard by restricting certain IP addresses.

To accomplish this, you can add the following code to the .htaccess file located inside the wp-admin directory.

order deny, allow

# Replace the below x.x.x.x with your IP address #

allow from x.x.x.x

deny from all

 

Alternatively, there are plugins available that serve the same purpose.

 

WP Ban

WP Ban enables you to block or ban specific IP addresses or a complete IP range. It will display a custom ban message when the banned IP/range attempts to visit your blog. Additionally, it can keep a record of how many times the restricted IP address or IP ranges visit your blog.

1) Install and activate the WP Ban plugin.

Restrict Ip Address

 

2) In your WordPress dashboard, go to the Ban menu under settings.

Restrict Ip Address

 

You can enter the IP address, IP address range, banned message, etc. Once you have finished customizing, save the changes at the bottom.

 

IP Ban

IP Ban is a security plugin used to protect websites from unwanted IP addresses or user agents. You can add IP addresses or user agents to create your own blacklist.

1) Install and activate the IP Ban plugin.

Restrict Ip Address

 

2) In your WordPress dashboard, go to the easy IP Ban menu under settings.

Restrict Ip Address

 

You can enter the IP address, User Agent List that you want to ban. You may also specify a redirect URL. When a user from a banned IP/user agent accesses your website, they will be redirected to the specified URL.

You can also install security plugins like Restrict Login Attempts, Simple Security, etc. to protect your WordPress dashboard. The Restrict Login Attempts plugin allows you to block IP addresses from making further attempts after reaching a specific limit. Simple Security Plugin for WordPress is an Access Log for tracking logins and failed login attempts for the admin area of your WordPress site.

 

If you need any further assistance, please contact our support department.

 

 

Post Your Comment