I used the below to block viewing of .htaccess but it doesn't seem to be working. I can type in the link and view the file. Is there another way to do this?
deny from all
Also in the web hosts control panel you should have an option to turn off all directory listing.