How to Restrict WordPress Admin Access by IP Web Development

How to Restrict WordPress Admin Access by IP Web Development

Today in Web Development Tutorial We learn How to Restrict WordPress Admin Access by IP.Are you concerned about the security of your WordPress site? and want to secure the WP Administrative panel? Restrict admin access by IP Address is an effective way to secure your WordPress admin panel. In this tutorial, we’ll show you how to restrict WordPress admin access by IP using HTACCESS.

Restrict WordPress Admin Access by IP

Restrict WordPress Admin Access by IP

Allow Access to WP Admin from specific IP

The following example shows how you can allow access from a specific IP address to wp-admin. It is very useful when you want to allow access only from your IP address.

Create a new file.htaccess and upload to the wp-admin directory. Now insert the following code in thewp-admin/.htaccess file.

If you want to allow access to wp-admin from multiple IP addresses, list them as allow from IP on each new line.

Block IP Address to Access WP Admin

If you don’t want to block every IP but specific IP to access WP Admin, you can block that IP address individually using the .htaccess file.

Create a new .htaccess file and upload to the wp-admin directory. Now insert the following code in wp-admin/.htaccess file.

Restrict Access by IP to wp-login.php file in WordPress

You can limit access to the wp-login.php file by IP address using HTACCESS. Open the main .htaccess file and insert the following code at top of the file.

Note that: Don’t forget to replace the IP address with your own.We hope this article helped you How to Restrict WordPress Admin Access by IP. You may also want to see our How to Control Your RSS Feeds Footer in WordPress Web Development Tutorial.

Conclusion

So that’s it How to Restrict WordPress Admin Access by IP.If you like this tutorial script then share it with your community. If you have any suggestion Feel free to comment below.If you want to learn more about PHP, CodeIgniterAngularJSLaraveljQuery  Web Development then daily visit PHPCodify.Sharing is Caring.

How to Restrict WordPress Admin Access by IP

Read previous post:
20 Best BuddyPress Themes for Your WordPress Website Web Development

20 Best BuddyPress Themes for Your WordPress Website Web Development Today in Web Development Tutorial We see 20 Best BuddyPress Themes for Your...

Close