title: Apache Whitelisting IPaddress To Access Website
body: <p>My requirement is to allow my website to be accessed only through the whitelisted ips.
  What did I do is, as I'm on apache version (Server version: Apache/2.4.41 (Ubuntu)) I had added below block to apache_inbound.conf
  As I'm on VPN I've got the ip address from <a href="https://whatismyipaddress.com/" rel="nofollow noreferrer">https://whatismyipaddress.com/</a> and <a href="https://ifconfig.me/ip" rel="nofollow noreferrer">https://ifconfig.me/ip</a> but still I'm been restricted and getting below error message.</p>
  <p>In the Apache logs I see something as 'source' and client' ips. Source ip is one which I'm getting from <a href="https://whatismyipaddress.com/" rel="nofollow noreferrer">https://whatismyipaddress.com/</a> n whitelisting this is not working. However when I whitelist 'client' ip it is working but i see the client ip of my laptop n mobile are same(my mobile is running on mobile data only)</p>
  <p>I suspect that whitelisting is working but I'm not getting the correct ip to do or I'm commuting some mistake here.</p>
  <p>can someone please help me to fix this issue?</p>
  <pre><code>&lt;VirtualHost *:443&gt;
     Require ip a.b.c.d
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>Error message:
  Forbidden
  You don't have permission to access this resource.</p>