How to prevent access to a specific file on server using htaccess?

If you want to block with the file name abc.jpg, the followig htaccess code will prevent the viewing of this file.
# prevent access of a certain file

order allow,deny
deny from all
Put this code in your .htaccess file.
Posted by: - Sun, Mar 14, 2010. This article has been viewed 3117 times.
Online URL:

Powered by PHPKB (Knowledge Base Software)