Skip to content

Commit

Permalink
Allow executing only the specific PHP files as external endpoints, re…
Browse files Browse the repository at this point in the history
…quired since PrestaShop 9.0
  • Loading branch information
jolelievre committed Feb 13, 2024
1 parent 33de321 commit 1677f3b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# In PrestaShop 9.0 php files are now protected so we allow only specific endpoints to be accessible
<FilesMatch "ps_facetedsearch-.+\.php$">
# Apache 2.2
<IfModule !mod_authz_core.c>
Order Allow,Deny
Allow from all
</IfModule>

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

0 comments on commit 1677f3b

Please sign in to comment.