facebooktwitterskypeRSS Feed
telephone: (920) 215-1842
facsimile: (866) 456-2115

Specify .htaccess to allow single IP address

If you want to lock down your WordPress admin side you can specify the ip address location your connecting from and edit your .htaccess file. You will need to put the .htaccess file into the wp-admin directory. Here is a example of how to configure your file:

Note: All literal periods in patterns should be escaped by preceding them with "\" except on separate lines.

Options +FollowSymLinks
  RewriteEngine On
  # 
  # Redirect all except developer ip addresses to alternate domain
  # home ip address
  RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
  # work ip address
  RewriteCond %{REMOTE_ADDR} !^5\.6\.7\.8$
  RewriteRule .* http://www.google.com/ [R=302,L]

Related posts:

  1. Upgrading WordPress automatically – Permissions
  2. How to define the WordPress secret

Leave a Reply