Как запретить доступ диапазону IP
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
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.
Как запретить доступ диапазону IP
Пример:
Есть динамический айпи 95.24.0.0 - 95.30.255.255 Я хочу заблокировать эти айпи адресы С 95.24.0.0 по 95.30.255.255 Какой командой блокировать?
Решение - сделать преобразование через сайт http://ip2cidr.com/ и добавить в .htaccess:
Order Allow,Deny Allow from All Deny from 95.24.0.0/14 Deny from 95.28.0.0/15 Deny from 95.30.0.0/16
Links: