Skip to content

Commit

Permalink
Merge pull request PrestaShop#34435 from ShaiMagal/protect-js-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-rolland authored Nov 2, 2023
2 parents 31b0f48 + 909dfdb commit 3f3ed59
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions js/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,25 @@
</IfModule>


# Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
<Files ~ "(?i)^.*\.(css|js|gif|png|jpg|svg|html|map|eot|ttf|woff)$">
Allow from all
</Files>
<Files ~ "(?i)^.*(jquery\.noConflict\.php|retro-compat\.js\.php)$">
Allow from all
</Files>
</IfModule>

# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
<Files ~ "(?i)^.*\.(css|js|gif|png|jpg|svg|html|map|eot|ttf|woff)$">
Require all granted
</Files>
<Files ~ "(?i)^.*(jquery\.noConflict\.php|retro-compat\.js\.php)$">
Require all granted
</Files>
</IfModule>

0 comments on commit 3f3ed59

Please sign in to comment.