Options -Indexes

# Proteger .htaccess y archivos sensibles
<FilesMatch "(\.htaccess|\.htpasswd|\.env|wp-config\.php|config\.php)">
    Require all denied
</FilesMatch>

# Configuración PHP
<IfModule mod_php5.c>
   php_value max_input_vars 5000
   php_value post_max_size 99M
   php_value upload_max_filesize 99M
</IfModule>

<IfModule mod_php7.c>
   php_value max_input_vars 5000
   php_value post_max_size 99M
   php_value upload_max_filesize 99M
</IfModule>

# Protecci贸n contra Clickjacking y contenido no seguro
<IfModule mod_headers.c>
   Header always set X-Frame-Options "SAMEORIGIN"
   Header always set X-Content-Type-Options "nosniff"
   Header set X-XSS-Protection "1; mode=block"
</IfModule>

# Prevenir Hotlinking de im谩genes
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://(www\.)?tudominio\.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [F]

# Redirigir HTTP a HTTPS
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>


<ifModule mod_headers.c>
   Header always set X-Frame-Options DENY
   Header always set X-Frame-Options SAMEORIGIN
   Header always set X-Content-Type-Options nosniff
</ifModule>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>
<FilesMatch "\.php$">
	Order Allow,Deny
	Allow from all
	Require all granted
</FilesMatch>