.htaccess Protect a file using .htaccess December 21, 2011 Pramod T P Leave a comment Add the below given code in your .htaccess file <files filename.php> order allow,deny deny from all </files>