Web.config 500 block ipaddress - Internal server error
<p>This is my web.config which has some tags for blocking Ipaddress</p>

<pre><code>&lt;system.webServer&gt;
&lt;defaultDocument enabled="true"&gt;
  &lt;files&gt;
    &lt;clear/&gt;

    &lt;add value="Default.aspx"/&gt;
  &lt;/files&gt;
&lt;/defaultDocument&gt;
&lt;modules runAllManagedModulesForAllRequests="true"/&gt;
&lt;security&gt;

  &lt;ipSecurity allowUnlisted="false"&gt;

    &lt;clear/&gt;

    &lt;add ipAddress="21.2.22.2" allowed="true"/&gt;

  &lt;/ipSecurity&gt;
    &lt;/security&gt;
</code></pre>

<p>
So my intention is to block any other IP except the above. 
The above is the only Ip address I want the website to  be accessible from . 
But this is the error I am receiving</p>

<p>500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.</p>

<p>My website is hosted on lunar pages. So as per this <a href="http://www.stokia.com/support/misc/web-config-ip-address-restriction.aspx" rel="nofollow">http://www.stokia.com/support/misc/web-config-ip-address-restriction.aspx</a> which I am refering to , the IP address is the client address. So it shouldn't have anything to do with the hosting provider.</p>

<p>Thank you</p>
