File: /home/u590867752/domains/himanshuartinstitute.com/public_html/gallery/.htaccess
# Security rules for /gallery/
Options -Indexes
RewriteEngine On
# Image-only folders and their subfolders: allow only image/static assets
RewriteRule ^(artist-meet-n-greet-workshops-seminars-demonstrations-india|celebrations-in-institute-of-fine-art-and-crafts|dance-drama-modeling-cultural-programme-in-delhi-india|educational-trips-fair-and-picnic|images|national-level-drawing-painting-art-and-craft-competitions|national-level-drawing-painting-art-and-craft-exhibitions)/.*\.(jpg|jpeg|png|gif|webp|svg|ico|css|js)$ - [L,NC]
# Image-only folders and their subfolders: block everything else
RewriteRule ^(artist-meet-n-greet-workshops-seminars-demonstrations-india|celebrations-in-institute-of-fine-art-and-crafts|dance-drama-modeling-cultural-programme-in-delhi-india|educational-trips-fair-and-picnic|images|national-level-drawing-painting-art-and-craft-competitions|national-level-drawing-painting-art-and-craft-exhibitions)/ - [F,L,NC]
# Block dangerous executable/script file types
<FilesMatch "\.(php|phtml|php5|php7|php8|phar|cgi|pl|py|sh|bash|asp|aspx|jsp|shtml)$">
Require all denied
</FilesMatch>
# Block all HTML first
<FilesMatch "\.(html|htm)$">
Require all denied
</FilesMatch>
# Allow only known safe HTML files
<Files "annual-fest-of-fine-art-and-craft-institute.html">
Require all granted
</Files>
<Files "artist-meet-n-greet-demonstrations-workshops-seminars.html">
Require all granted
</Files>
<Files "celebrations-in-himanshu-art-institute.html">
Require all granted
</Files>
<Files "celebrities-and-famous-personalities.html">
Require all granted
</Files>
<Files "educational-trips-fair-and-picnic.html">
Require all granted
</Files>
<Files "index.html">
Require all granted
</Files>
<Files "national-level-child-art-contest-and-competition.html">
Require all granted
</Files>
<Files "national-level-child-art-exhibition-for-kids.html">
Require all granted
</Files>
<Files "national-level-drawing-painting-art-and-craft-competitions.html">
Require all granted
</Files>
<Files "national-level-drawing-painting-art-and-craft-exhibitions.html">
Require all granted
</Files>
<Files "national-level-painting-art-and-craft-exhibition.html">
Require all granted
</Files>
<Files "on-the-spot-state-level-painting-competition.html">
Require all granted
</Files>