Запрет или разрешение доступа с некоторых ip адрессов

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Самые выгодные сервера‎ в рунете


Чтобы ограничить доступ из подсети 172.32.12.0/24 добавьте в .htaccess файл:

Order Allow,Deny
Allow from All
Deny from 172.32.12.0/24

Чтобы разрешить доступ только из подсети 172.32.12.0/24 добавьте в .htaccess файл:

Order Deny,Allow
Deny from All
Allow from 172.32.12.0/24

Order - показывает порядок чтение директив