Prevent browser access with htaccess Add this to a .htaccess file in the directory you wish to protect: Deny from all 1 Deny from all Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Google+ (Opens in new window)Click to Press This! (Opens in new window)Click to email this to a friend (Opens in new window)