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

Specify .htaccess to allow single IP address

email

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

Post a Comment

Do you have a question or comment about this post. Please share! Your email address will not be published. Required fields are marked *

*