tag:blogger.com,1999:blog-865923359735383241.post847518859358672530..comments2023-10-29T07:27:09.012-06:00Comments on Ccna final exam - java, php, javascript, ios, cshap all in one: Using .htaccess to restrict access to filesUnknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-865923359735383241.post-51485589554172307962012-06-04T20:35:29.138-06:002012-06-04T20:35:29.138-06:00Here's what you have to do. Put this in your ....Here's what you have to do. Put this in your .htaccess<br /><br />RewriteEngine On<br />RewriteBase /<br />RewriteCond %{HTTP_HOST} ^(www.)?zyx987.com$<br />RewriteRule ^download - [F]<br /><br /><br />This will block any request like:<br /><br />/download/<br />/download/file1.jpg<br />/download/another/file.zip<br /><br /><br />and give a permission denied.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.com