.htacess

shaun166

New Member
guys.. how to use .htacess to block people from going certain directory?
like example i want to block myweb.com/blockthis. i want to block people from going /blockthis folder is there anyway and only allow me to access?
 
I think adding this to a .htaccess will get our result assuming that its in the webroot.

<Directory /blockthis>
Order Deny,Allow
Deny from All
</Directory>

Also, You could put an .htaccess in /blockthis that contains:

Order Deny,Allow
Deny from All
 
Back
Top