To prevent access to some specific files, using htaccess, you can write the following: inside your .htaccess, that is located in the directory that contains 1.doc.
Put this into your .htaccess file in the web root of your site.
11 Dec 2019 htaccess is a powerful Apache configuration file for URL Redirects, SEO, Disallow Script Execution; Deny Request Methods; Force "File Save As" Don't ask why, but I personally downloaded each major/beta release of the Denies any Direct request for files ending in .php with a 403 Forbidden. 30 Sep 2019 One of the best uses of the .htaccess file is its ability to deny multiple IP For example at WPExplorer, if you want to download our awesome Here is an mod rewrite rule that you can put in .htaccess file to not let anyone download files from the directory — except when the the direct access URL contain Quickly generate an htaccess file for many functions including www rewrite, hotlink prevention, Prevent Hotlinking More info about .htaccess Prevent Hotlink. 11 Jun 2019 The .htaccess file is a configuration file that WordPress uses for Apache web servers, the It's also possible to use this code to prevent directories from being listed: When you want to download a file from a website, your browser sometimes tries to open it to display it. Block direct access to PHP files. Beginners guide to .htaccess (hypertext access) file - a directory level We will send an email with details to download the server and client apps. servers like Nginx do not have a direct support for .htaccess files, there are ways by which we can without mentioning how we can prevent hotlinking using a simple text file!
1 Sep 2013 If you do not have a .htaccess file in your root directory, see the related As with any .htaccess rewrite, you may block legitimate traffic, such as 23 May 2017 Before editing your .htaccess file, it is important to download a copy of it block those requests by blocking the IP address in your .htaccess file. 31 Oct 2017 Controlling via .htaccess is one of the most efficient way to prevent For those who already have an existing .htaccess file, download it to your Creating an .htaccess file on your DreamHost web server View the following article for instructions on how to create an .htaccess file 29 Nov 2019 How to Use htaccess File to Secure, Optimize, and Control Redirects in WordPress
29 Nov 2019 How to Use htaccess File to Secure, Optimize, and Control Redirects in WordPress
In joomla I have a menu item to this files (via normal joomla article or via download component) that is visible only if a user is logged in. If someone types in the direct url, he gets access to this files. (without prompting for a login!) This happens also if "google" scans my site. So the "protected" files are visible to everyone. Any