title: WordPress WP-admin IP check and redirect
body: <p>I'm planning on using Wordpress on an upcoming project and the biggest question for me is security.</p>
  
  <p>I will be having several users who will be able to update the site and I've given myself several options. I can build a static web page and then have a 'blog' page that is using a WordPress install for that page only. This seems a bit excessive just for a blog feature, but it's an option.</p>
  
  <p>The other option I'm looking at is a full WordPress install to power the whole site. My big issue is blocking the <code>/wp-admin</code> from everyone but the people at a static IP that won't be changing. I'm thinking if I go this route I can use my <code>.htaccess</code> to check the IP and if it returns false, redirect it to the homepage. If it is true, then continue on to the wp-admin login page.</p>
  
  <p>If I go with my second option, how do I use <code>.htaccess</code> to check the IP and if it returns false, redirect back to the homepage. And if it's true, continue to the WordPress login page.</p>
  
  <p>Is this best starting point?</p>
  
  <pre><code>&lt;Location /wp-admin/&gt;
      order allow,deny
      allow from 1.1.1.1
      deny from all 
  &lt;/Location&gt;
  </code></pre>
  
  <p>I appreciate any input ahead of time!</p>