How to Restrict or Control WordPress Admin Access by IP

Restrict admin access by ip address

Are you worried about the security of your WordPress site? what’s more, need to secure the WP Administrative panel? Limit admin access by IP Address is a compelling method to secure your WordPress admin panel. In this instructional exercise, we’ll show you industry standards to limit WordPress admin access by IP utilizing HTACCESS.

Allow Access to WP Admin from specific IP

The following example shows how you can allow access from a particular IP address to wp-admin. It is exceptionally valuable when you need to allow access just from your IP address.

Make another .htaccess record and transfer to the wp-admin index. Presently embed the following code in wp-admin/.htaccess document.

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

Block IP Address to Access WP Admin

If you would prefer not to block each IP yet specific IP to access WP Admin, you can block that IP address exclusively utilizing the .htaccess record.

Make another .htaccess record and transfer to the wp-admin registry. Presently embed the following code in wp-admin/.htaccess document.

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

You can control access to the wp-login.php file by IP address utilizing HTACCESS. Open the root .htaccess record and embed the following code at best of the document.

Related posts