mod-access

Blocking multiple ip ranges using mod access in htaccess

邮差的信 提交于 2019-12-18 07:43:38
问题 I read the guide from apache site but I'm a bit confused, I'm trying to ban some ranges using this syntax: order allow,deny deny from 127.0.55.0/127.0.75.255 deny from 127.0.235.0/127.0.255.255 allow from all But I think it's not working properly, probably the syntax is wrong or I'm using it in the wrong way, where should I write this text in htaccess? before the other lines or after? in the same htaccess file there're some mod rewrite script too (for anti-hotlinking). 回答1: I've come to this

Blocking multiple ip ranges using mod access in htaccess

烈酒焚心 提交于 2019-12-01 15:56:06
I read the guide from apache site but I'm a bit confused, I'm trying to ban some ranges using this syntax: order allow,deny deny from 127.0.55.0/127.0.75.255 deny from 127.0.235.0/127.0.255.255 allow from all But I think it's not working properly, probably the syntax is wrong or I'm using it in the wrong way, where should I write this text in htaccess? before the other lines or after? in the same htaccess file there're some mod rewrite script too (for anti-hotlinking). I've come to this answer using apache documentation . You can give an address range using ip/netmask pair : deny from 127.0.55