.htaccess

main 18 lines · 640 bytes Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1# Nothing inside a theme is meant to be requested directly: ZnoteX includes its
2# shells and views from the page that owns them. Reaching one on its own means
3# running it outside engine/init.php, with no $config and no session -
4# unpredictable at best, and a way to read a theme's source at worst.
5#
6# The theme's own css, js, images and fonts still work: they do not match the
7# list below.
8
9<FilesMatch "\.(php|phtml|php[0-9]|inc|sql|json|md|txt|ya?ml|ini|log|bak|dist|example)$">
10 <IfModule mod_authz_core.c>
11 Require all denied
12 </IfModule>
13 <IfModule !mod_authz_core.c>
14 Order deny,allow
15 Deny from all
16 </IfModule>
17</FilesMatch>
18
Top