From 9e434713af5671cb4a32016454ebb43e7e0f5712 Mon Sep 17 00:00:00 2001 From: Oleg Tolchin Date: Tue, 24 Feb 2026 19:44:22 +0300 Subject: [PATCH] --- .htaccess | 46 ---------------------------------------------- robots.txt | 34 ---------------------------------- script.js | 7 ++++++- sitemap-images.xml | 20 -------------------- sitemap-index.xml | 16 ---------------- sitemap.xml | 25 ------------------------- 6 files changed, 6 insertions(+), 142 deletions(-) delete mode 100644 .htaccess delete mode 100644 robots.txt delete mode 100644 sitemap-images.xml delete mode 100644 sitemap-index.xml delete mode 100644 sitemap.xml diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 702114b..0000000 --- a/.htaccess +++ /dev/null @@ -1,46 +0,0 @@ -# .htaccess для films.tolchin.pro - -# Включение RewriteEngine -RewriteEngine On - -# Перенаправление на HTTPS (раскомментируйте если есть SSL) -# RewriteCond %{HTTPS} off -# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - -# Перенаправление www на без-www -RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] -RewriteRule ^(.*)$ http://%1/$1 [R=301,L] - -# Кэширование статических файлов - - ExpiresActive On - ExpiresByType image/jpeg "access plus 1 year" - ExpiresByType image/png "access plus 1 year" - ExpiresByType image/webp "access plus 1 year" - ExpiresByType image/x-icon "access plus 1 year" - ExpiresByType text/css "access plus 1 month" - ExpiresByType application/javascript "access plus 1 month" - - -# Сжатие - - AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript - - -# Защита от прямого доступа к конфигурационным файлам - - Order allow,deny - Deny from all - - -# Безопасные заголовки - - Header set X-Content-Type-Options "nosniff" - Header set X-Frame-Options "SAMEORIGIN" - Header set X-XSS-Protection "1; mode=block" - - -# Правила для SEO -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^$ index.html [L] diff --git a/robots.txt b/robots.txt deleted file mode 100644 index 8a6f67e..0000000 --- a/robots.txt +++ /dev/null @@ -1,34 +0,0 @@ -# robots.txt для films.tolchin.pro - -Host: films.tolchin.pro - -User-agent: * -Allow: / - -# Разрешаем основные страницы -Allow: /$ -Allow: /index.html - -# Запрещаем индексацию технических файлов -Disallow: /style.css -Disallow: /script.js -Disallow: /favicon.svg -Disallow: /.htaccess -Disallow: /README.md - -# Запрещаем служебные пути -Disallow: /*.md$ -Disallow: /*.txt$ -Disallow: /*.xml$ - -# Индексация -Sitemap: https://films.tolchin.pro/sitemap.xml -Sitemap: https://films.tolchin.pro/sitemap-index.xml - -# Clean параметры -Clean-param: ref / - -# Ограничение индексации дубликатов -Noindex: /style.css -Noindex: /script.js -Noindex: /favicon.svg diff --git a/script.js b/script.js index 5b533c6..edcbff0 100644 --- a/script.js +++ b/script.js @@ -9,7 +9,12 @@ const PROXIES = [ 'https://api.allorigins.win/raw?url=', 'https://proxy.cors.sh/', 'https://corsproxy.org/?', - 'https://allorigins.win/raw?url=' + 'https://allorigins.win/raw?url=', + 'https://api.codetabs.com/v1/proxy?quest=', + 'https://thingproxy.freeboard.io/fetch/', + 'https://cors-anywhere.herokuapp.com/', + 'https://corsproxy.ca/', + 'https://proxy.t vot.pw/', ]; // Кеш страниц фильмов и постеров diff --git a/sitemap-images.xml b/sitemap-images.xml deleted file mode 100644 index 7310475..0000000 --- a/sitemap-images.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - diff --git a/sitemap-index.xml b/sitemap-index.xml deleted file mode 100644 index 787be14..0000000 --- a/sitemap-index.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - https://films.tolchin.pro/sitemap.xml - 2026-02-24 - - - - - https://films.tolchin.pro/sitemap-images.xml - 2026-02-24 - - - diff --git a/sitemap.xml b/sitemap.xml deleted file mode 100644 index 07b89a8..0000000 --- a/sitemap.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - https://films.tolchin.pro/ - hourly - 1.0 - 2026-02-24 - - - - - https://films.tolchin.pro/ - - - - - -