Apache on Raspberry Pi deny/allow IP of directory
<p>I know that this has been asked before but I just can't get it to work. What I want to achieve is to make it so that the index.php file and others in the /var/www directory can only be accessed when connected to my home network, but phpmyadmin is available through a server hosted on Weaved (weaved.com). Ideally it would make everything "private"(only accessible when on the home network) except phpmyadmin and the MySQL databases. When using the code bellow I can still acces the page from any IP address I like, why? Thanks in advance!</p>

<pre><code>  &lt;Directory /var/www/&gt;
  order deny,allow
  deny from all
  allow from 192.168.0.240
  &lt;/Directory&gt;
</code></pre>