Saturday, June 6, 2015

Apache2 URL Restriction

URL olarak bir url i httpd.conf ta bloklamak istiyorsak <Directory > yerine <Location > diyormuşuz.

<Directory /admin>
        order deny,allow
        Allow from 10.50.50.0/24
        deny from all
</Directory>

<Location /index.php/admin>
        order deny,allow
        deny from all
        Allow from 10.50.50.0/24
</Location>