.htaccess Denying Directory Access

I can’t seem to figure out what is wrong with this .htaccess directive since it seems to work on every other host

<Directory /nobodycanenter>
Order Allow,Deny
Deny from all

That won’t work as written on any Apache server, as Directory can only be used in the top-level httpd.conf or within a VirtualHost container.

To do this with .htaccess, use only the Order and Deny lines and place the .htaccess file in the directory you want to deny access to.

If you want useful replies, ask smart questions.