# Smart Cross Sell Module - Security
# Prevent direct access to module files

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/modules/smartcrosssell/controllers/
RewriteCond %{REQUEST_URI} !/modules/smartcrosssell/views/
RewriteRule . - [F]
</IfModule>

# Disable directory listing
Options -Indexes

# Protect sensitive files
<FilesMatch "\.(php|tpl|sql|txt|md)$">
Order Allow,Deny
Deny from all
</FilesMatch>

# Allow only necessary files
<FilesMatch "^(index\.php|config\.xml)$">
Order Allow,Deny
Allow from all
</FilesMatch>
