Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save deepak-rajpal/5411426 to your computer and use it in GitHub Desktop.
Save deepak-rajpal/5411426 to your computer and use it in GitHub Desktop.
Restrict Wordpress Admin/Login/Access by IP Address (Example for Localhost): Add following code into .htaccess file
<Files wp-login.php>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment