Created
September 12, 2018 15:48
-
-
Save earth3300/ff4986ec2211a88e9401db4ea1d75cf3 to your computer and use it in GitHub Desktop.
Use of RequireAll to deny all access to the directory (and all subdirectories) in which this .htaccess directive is placed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SECURITY BEGIN | |
| <RequireAll> | |
| Require all denied | |
| </RequireAll> | |
| # SECURITY END |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: The documentation at https://httpd.apache.org/docs/2.4/howto/access.html is ambiguous. The example given is to grant access to all, and then to deny for a specific IP address. In addition, in the past, the format was different, which will be deprecated. Though only a few lines, this example is critical to absolutely deny access to all visitors, regardless of type. In addition, there is not link to the module . However, this is tested on a local machine, and working when tested.