Прячем все лишнее от сторонних глаз

Как уберечь себя от таких ненужных ссылок, как:

http://site.ru/sitestats.php
http://site.ru/config.php

И прочих…Как уберечь себя от таких ненужных ссылок, как:

http://site.ru/sitestats.php
http://site.ru/config.php

И прочих…

Многие наверное знают, но напишу для не особо опытных, или же новичков в этом деле. Как же это все спрятать? Есть очень простое решение, и вот оно…

Открываем ваш файл .htaccess, который лежит в корне сайта и в самом начале его добавляем такие строки:

<Files config.php>
Order Deny,Allow
Deny from All
</Files>

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

Автор публикации

не в сети 3 года

LOZNEVOI

Комментарии: 1Публикации: 8Регистрация: 09-03-2011

Понравилась статья? Поделись в соц. сетях:

Похожие новости

Отправить комментарий

wpDiscuz
Авторизация
*
*
Регистрация
*
*
*
Генерация пароля