i use following code in .htaccess file to usr/psw protect a web folder. However i want to protect this folder only if its accessed outside of 192.168.178.* How can i do this?
AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Access"
AuthType Basic
<Limit GET POST >
require valid-user
</Limit>
Thanks