Htaccess Optimization

Started by mickjav, December 30, 2024, 08:58:05 AM

Previous topic - Next topic

mickjav

Been looking around but not been able to find what I want, I'm looking for a way to deny from one IP range to another range without doing the below.

order allow,deny
deny from 217.113.194.*
deny from 101.44.250.*
deny from 101.44.251.*
deny from 101.44.249.*
deny from 101.44.248.*
deny from 46.148.206.226
deny from 46.35.9.110
deny from 177.84.4.*
deny from 91.108.195.120
deny from 104.168.137.236
deny from 47.76.35.0/24
deny from 111.119.208.*
deny from 111.119.209.*
deny from 111.119.210.*
deny from 111.119.211.*
deny from 111.119.212.*
deny from 111.119.213.*
deny from 111.119.214.*
deny from 111.119.215.*
deny from 111.119.216.*
deny from 111.119.217.*
deny from 111.119.218.*
deny from 111.119.219.*
deny from 111.119.220.*
deny from 111.119.221.*
deny from 111.119.222.*
deny from 111.119.223.*
allow from all



shawnb61

A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

You can do this -


Order Allow,Deny
Deny from 47.128.0.0/16


And this will tell you which IPs are blocked.
When in Emor, do as the Snamors.
                              - D. Lister

Advertisement: