I want to deny all users access to a directory on my site. I’ve tried the and directives in .htaccess but I keep getting a server error. I suspect my syntax is wrong but I am having trouble finding the corrcet syntax. I don’t want to password protect it I just want to deny all web access to the directory.
deny from all
I’ve tried both relative directory /directory and full path on the server.
Any help would be appreciated.