Файловый менеджер - Редактировать - /home/gqdcvggs/cdn.imators.com/.htaccess
Назад
RewriteEngine On # This is a High protection by Imators RewriteCond %{HTTP_USER_AGENT} !(^Mozilla/|^Opera/|^Chrome/|^Safari/|^Firefox/|^MSIE|^Trident/) [NC] RewriteCond %{HTTP_USER_AGENT} (^Mozilla/|^Opera/|^Chrome/|^Safari/|^Firefox/|^MSIE|^Trident/) [NC] RewriteCond %{THE_REQUEST} \s/+(.*?/)?(?:index)?(.*?)\.html[\s?/] [NC] RewriteRule ^ /%1%2 [R=302,L,NE] RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.+?)/?$ $1.html [L] RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType text/css "access plus 1 month" ExpiresByType application/pdf "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType text/javascript "access plus 1 month" ExpiresByType text/html "access plus 600 seconds" ExpiresByType application/x-shockwave-flash "access plus 1 month" </IfModule> <IfModule mod_headers.c> <FilesMatch "\.(html|htm|js|css)$"> Header set Cache-Control "max-age=600, public" </FilesMatch> Header set X-Content-Type-Options "nosniff" Header set X-XSS-Protection "1; mode=block" Header set X-Frame-Options "SAMEORIGIN" Header always set Referrer-Policy "no-referrer-when-downgrade" Header set Content-Security-Policy "default-src 'self' https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https:; style-src 'self' 'unsafe-inline' https:; img-src 'self' data: https:; font-src 'self' https:; frame-src 'none'; object-src 'none'; connect-src 'self' https:" </IfModule> ErrorDocument 404 /404.shtml ErrorDocument 500 /500.html RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-SSL} !on RewriteCond %{HTTP_HOST} ^imators\.com$ RewriteRule ^/?$ "https\:\/\/imators\.com\/" [R=301,L] <IfModule mime_module> AddHandler application/x-httpd-ea-php81 .php .php8 .phtml </IfModule> <Files 403.shtml> order allow,deny allow from all </Files> # Bloquer le référencement par les robots Header set X-Robots-Tag "noindex, nofollow"
| ver. 1.6 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка