Skip to content

Commit

Permalink
Protect vendors folder
Browse files Browse the repository at this point in the history
Fixes #25621
  • Loading branch information
vboctor committed Apr 20, 2019
1 parent e21eae5 commit 9b07063
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vendor/.htaccess
@@ -0,0 +1,12 @@
## no access to this folder

# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

# Apache 2.2
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
11 changes: 11 additions & 0 deletions vendor/Web.config
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Deny" users="*" />
</authorization>
</security>
</system.webServer>
</configuration>

0 comments on commit 9b07063

Please sign in to comment.