Как уберечь себя от таких ненужных ссылок, как:
http://site.ru/sitestats.php
http://site.ru/config.php
И прочих...
Многие наверное знают, но напишу для не особо опытных, или же новичков в этом деле. Как же это все спрятать? Есть очень простое решение, и вот оно...
Открываем ваш файл .htaccess, который лежит в корне сайта и в самом начале его добавляем такие строки:
Order Deny,Allow
Deny from All
Redirect permanent /header.php /index.html
Redirect permanent /footer.php /index.html
Redirect permanent /sitestats.php /index.html
Redirect permanent /config.php /index.html
Redirect permanent /rotator100.php /index.html
Redirect permanent /rotator.php /index.html
Redirect permanent /rotator12.php /index.html
Redirect permanent /rotl.php /index.html
Redirect permanent /rot88.php /index.html
Redirect permanent /rot5.php /index.html
Redirect permanent /rot4.php /index.html
Redirect permanent /rot3.php /index.html
Redirect permanent /rot2.php /index.html
Redirect permanent /rot1.php /index.html
Redirect permanent /sfbstat.php /index.html
Redirect permanent /sfb.php /index.html
Redirect permanent /runblock.php /index.html
Redirect permanent /showchain.php /index.html
Вот и все...
Помог? Ставим \"+\" или кидаем мелочуху: R328583938858
http://site.ru/sitestats.php
http://site.ru/config.php
И прочих...
Многие наверное знают, но напишу для не особо опытных, или же новичков в этом деле. Как же это все спрятать? Есть очень простое решение, и вот оно...
Открываем ваш файл .htaccess, который лежит в корне сайта и в самом начале его добавляем такие строки:
Order Deny,Allow
Deny from All
Redirect permanent /header.php /index.html
Redirect permanent /footer.php /index.html
Redirect permanent /sitestats.php /index.html
Redirect permanent /config.php /index.html
Redirect permanent /rotator100.php /index.html
Redirect permanent /rotator.php /index.html
Redirect permanent /rotator12.php /index.html
Redirect permanent /rotl.php /index.html
Redirect permanent /rot88.php /index.html
Redirect permanent /rot5.php /index.html
Redirect permanent /rot4.php /index.html
Redirect permanent /rot3.php /index.html
Redirect permanent /rot2.php /index.html
Redirect permanent /rot1.php /index.html
Redirect permanent /sfbstat.php /index.html
Redirect permanent /sfb.php /index.html
Redirect permanent /runblock.php /index.html
Redirect permanent /showchain.php /index.html
Вот и все...
Помог? Ставим \"+\" или кидаем мелочуху: R328583938858
6 комментарии
0 загрузки
Детали
- Первый релиз 13 июн 2011
- Последнее обновление 03 авг 2026
- Документация Есть
- Содержимое файлов Исходные файлы
- Всего товаров 8
- Рейтинг (0)
- Регистрация 09 мар 2011
- Уровень 0
- Пользователь подтверждён Да
- Телефон подтверждён Нет
- Email подтверждён Нет

sonik12
- 04 июл 2012Спасибо а реально помогло
+ В репу
LOZNEVOI
- 19 июн 2011я как то себе мозг на серваке не парил никогда!
а это я писал как простенький вариант!
rostislav777
- 18 июн 2011ты понимаешь, что это лишяя нагрузка на апач!?
kirill
- 18 июн 2011Проще сделать так пропишите в .htaccess
<Files НАЗВАНИЕ.php>
deny from all
</Files>
Проще и удобней
SWEET
- 14 июн 2011эх ты.!!!!!!