title: I am using CloudFlare. How do I block access to my site admin to all but my IP address using .htaccess
body: <p>My application runs on an ubuntu server which sits behind cloudflare. I want to redirect requests for <code>example.com/admin</code> to show 404 if the visitor is not coming from my IP <code>123.1.2.3</code></p>
  
  <p>I tried <a href="https://stackoverflow.com/questions/13931765/allow-access-in-htaccess-based-on-the-httpx-forwarded-for">this</a>
  I also tried using </p>
  
  <pre><code>RewriteCond %{HTTP:CF-CONNECTING-IP} !^(123\.1\.2\.3)$
  RewriteRule ^admin.php  - [R=404,L]
  </code></pre>
  
  <p>But none of them worked.<br>
  I have installed mod_cloudflare</p>