Exist a way in Htaccess to say If HTTP_HOST = my.subdomain.com Then block access (403) for the files .php and .html?
I want that the only files accessible throug my subdomain are Images.
Try:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^my\.subdomain\.com$ [NC]
RewriteRule ^(.*)\.(php|html)$ - [L,F]
Put this code in your DOCUMENT_ROOT/.htaccess
file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^my\.subdomain\.com$
RewriteRule \.(php|html)$ - [NC,F]