Support ⇒ Security ⇒ IP Banning Ranges - What am I doing wrong? ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexSecurity

IP Banning Ranges - What am I doing wrong? Reply to topic


I want to ban Baidu. (Doesn't follow robots.txt, nor the delay. And has hammered 1 site hard enough to corrupt the session file.) Baidu says that it honours robots.txt delay, but that it only applies per bot, and they may use more than 1 bot at a time!

There are multiple small ranges of Baidu IP addresses, but the 1 I'm having trouble with is their main one.

I enter 180.76.15.0 as IPv4 Start and 180.76.15.255 as IPv4 end and click Add IPv4 button. Correct?

IP's is set to active.

But IP Tracker is still showing Baidu hammering away within that range every couple of seconds.

Am I doing something wrong?

Or does IP Tracker record prior to IP Banning? If the latter then is there a way to modify IP Tracker so it reports only accesses rather than attempts?

This is on v9.4 on 2 sites.

Or is their a simple command to do same in .htaccess? (Note it has to be by IP - if you use the bot name they use a different bot instead from same IP.)

TIA!

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


.htaccess
deny from 180.76.15.0/24
This is our list at the moment
htaccess wrote
# start IP ban

deny from 64.74.215.113 # Invalid UA

deny from 64.79.100.23 # webcrawler with Invalid UA

deny from 5.9.0.0/16 # Hetzner Online AG
deny from 5.101.136.0/21 # ukservers.com
deny from 5.135.0.0/16 # benjaminstrahs.com
deny from 38.130.220.0/24 # cloudsouth.com
deny from 38.130.221.0/24 # cloudsouth.com
deny from 46.4.0.0/16 # Hetzner Online AG
deny from 54.80.141.0/24 # amazonaws.com
deny from 54.166.43.0/24 # amazonaws.com
deny from 85.10.192.0/18 # Hetzner Online AG
deny from 104.143.16.0/20 # Roya Hosting
deny from 107.20.13.0/24 # amazonaws.com
deny from 117.169.1.0/24 # Guangdong Mobile Communication
deny from 155.94.157.0/24 # QuadraNet Inc
deny from 155.94.158.0/24 # QuadraNet Inc
deny from 155.94.165.0/24 # QuadraNet Inc
deny from 158.222.0.0/20 # netirons
deny from 185.11.144.0/22 # BlazingFast LLC
deny from 185.61.136.0/22 # BlazingFast LLC
deny from 185.62.188.0/23 # BlazingFast LLC
deny from 185.62.190.0/23 # BlazingFast LLC
deny from 188.209.48.0/23 # BlazingFast LLC
deny from 194.146.224.0/22 # Nerim SAS
deny from 204.44.112.0/24 # QuadraNet Inc
deny from 204.44.113.0/24 # QuadraNet Inc
deny from 212.129.0.0/18 # Online SAS
deny from 213.133.96.0/19 # Hetzner Online AG

# Centarra Networks Inc. ipinfo.io/AS40440
deny from 23.92.56.0/23
deny from 64.57.134.0/24
deny from 66.248.192.0/19
deny from 192.119.144.0/20
deny from 192.161.192.0/18
deny from 192.241.10.0/24
deny from 192.241.11.0/24
deny from 192.241.12.0/24
deny from 192.241.13.0/24
deny from 192.241.14.0/24
deny from 192.241.15.0/24
deny from 192.241.8.0/21
deny from 198.52.128.0/17
deny from 199.195.156.0/22

# ColoCrossing ipinfo.io/AS36352
deny from 5.226.171.0/24
deny from 8.17.250.0/23
deny from 8.17.252.0/24
deny from 23.94.0.0/22
deny from 23.94.4.0/22
deny from 23.94.8.0/22
deny from 23.94.12.0/22
deny from 23.94.16.0/20
deny from 23.94.32.0/20
deny from 23.94.48.0/21
deny from 23.94.56.0/22
deny from 23.94.60.0/22
deny from 23.94.64.0/21
deny from 23.94.72.0/22
deny from 23.94.76.0/24
deny from 23.94.77.0/24
deny from 23.94.78.0/23
deny from 23.94.80.0/21
deny from 23.94.88.0/23
deny from 23.94.90.0/24
deny from 23.94.91.0/24
deny from 23.94.92.0/22
deny from 23.94.96.0/22
deny from 23.94.100.0/22
deny from 23.94.104.0/23
deny from 23.94.106.0/24
deny from 23.94.107.0/24
deny from 23.94.108.0/23
deny from 23.94.110.0/24
deny from 23.94.111.0/24
deny from 23.94.112.0/20
deny from 23.94.128.0/22
deny from 23.94.132.0/23
deny from 23.94.134.0/24
deny from 23.94.135.0/24
deny from 23.94.136.0/22
deny from 23.94.140.0/23
deny from 23.94.142.0/24
deny from 23.94.143.0/24
deny from 23.94.144.0/20
deny from 23.94.160.0/19
deny from 23.94.192.0/20
deny from 23.94.208.0/20
deny from 23.94.224.0/20
deny from 23.94.240.0/21
deny from 23.94.248.0/21
deny from 23.94.255.0/24
deny from 23.95.0.0/20
deny from 23.95.14.0/24
deny from 23.95.16.0/22
deny from 23.95.20.0/22
deny from 23.95.24.0/21
deny from 23.95.32.0/22
deny from 23.95.36.0/22
deny from 23.95.40.0/21
deny from 23.95.48.0/20
deny from 23.95.64.0/20
deny from 23.95.80.0/21
deny from 23.95.88.0/23
deny from 23.95.90.0/23
deny from 23.95.92.0/22
deny from 23.95.96.0/22
deny from 23.95.100.0/22
deny from 23.95.104.0/21
deny from 23.95.112.0/20
deny from 23.95.128.0/17
deny from 23.229.96.0/20
deny from 23.229.112.0/20
deny from 23.236.240.0/20
deny from 23.249.160.0/21
deny from 23.249.168.0/23
deny from 23.249.170.0/24
deny from 23.249.171.0/24
deny from 23.249.172.0/23
deny from 23.249.174.0/23
deny from 23.250.112.0/20
deny from 23.254.88.0/21
deny from 23.254.96.0/21
deny from 23.254.104.0/23
deny from 23.254.106.0/24
deny from 23.254.112.0/20
deny from 43.245.196.0/24
deny from 45.40.32.0/21
deny from 45.40.40.0/22
deny from 45.40.44.0/22
deny from 65.99.193.0/24
deny from 65.99.246.0/24
deny from 66.225.194.0/23
deny from 66.225.198.0/24
deny from 66.225.231.0/24
deny from 66.225.232.0/24
deny from 69.31.134.0/24
deny from 72.249.94.0/24
deny from 72.249.124.0/24
deny from 75.102.10.0/24
deny from 75.102.27.0/24
deny from 75.102.34.0/24
deny from 75.102.38.0/23
deny from 75.127.0.0/24
deny from 75.127.1.0/24
deny from 75.127.2.0/23
deny from 75.127.4.0/24
deny from 75.127.5.0/24
deny from 75.127.6.0/23
deny from 75.127.8.0/23
deny from 75.127.10.0/23
deny from 75.127.12.0/23
deny from 75.127.14.0/23
deny from 96.8.112.0/23
deny from 96.8.114.0/23
deny from 96.8.116.0/24
deny from 96.8.117.0/24
deny from 96.8.118.0/24
deny from 96.8.119.0/24
deny from 96.8.120.0/24
deny from 96.8.121.0/24
deny from 96.8.122.0/24
deny from 96.8.123.0/24
deny from 96.8.124.0/24
deny from 96.8.125.0/24
deny from 96.8.126.0/23
deny from 104.128.231.0/24
deny from 104.128.232.0/24
deny from 104.145.226.0/24
deny from 104.145.227.0/24
deny from 104.145.228.0/24
deny from 104.145.231.0/24
deny from 104.145.232.0/24
deny from 104.145.233.0/24
deny from 104.145.234.0/24
deny from 104.145.237.0/24
deny from 104.145.238.0/24
deny from 104.168.0.0/19
deny from 104.168.32.0/19
deny from 104.168.64.0/21
deny from 104.168.72.0/24
deny from 104.168.73.0/24
deny from 104.168.74.0/23
deny from 104.168.76.0/22
deny from 104.168.84.0/22
deny from 104.168.88.0/21
deny from 104.168.96.0/19
deny from 104.227.192.0/19
deny from 104.232.32.0/22
deny from 104.232.36.0/23
deny from 104.232.38.0/23
deny from 104.250.125.0/24
deny from 107.161.144.0/21
deny from 107.161.152.0/24
deny from 107.161.155.0/24
deny from 107.161.156.0/23
deny from 107.161.158.0/24
deny from 107.172.0.0/20
deny from 107.172.16.0/23
deny from 107.172.18.0/23
deny from 107.172.20.0/22
deny from 107.172.24.0/21
deny from 107.172.32.0/19
deny from 107.172.64.0/18
deny from 107.172.128.0/17
deny from 107.173.0.0/16
deny from 107.174.0.0/16
deny from 107.175.0.0/16
deny from 108.174.48.0/21
deny from 108.174.56.0/22
deny from 108.174.60.0/24
deny from 108.174.61.0/24
deny from 108.174.62.0/23
deny from 138.128.112.0/20
deny from 162.218.88.0/23
deny from 162.218.90.0/23
deny from 162.218.92.0/23
deny from 162.218.94.0/24
deny from 162.218.95.0/24
deny from 162.221.176.0/23
deny from 162.221.178.0/23
deny from 162.221.180.0/23
deny from 162.221.182.0/24
deny from 162.221.183.0/24
deny from 172.87.240.0/22
deny from 172.87.244.0/22
deny from 172.87.248.0/22
deny from 172.87.252.0/24
deny from 172.87.253.0/24
deny from 172.87.254.0/23
deny from 172.245.0.0/20
deny from 172.245.16.0/22
deny from 172.245.20.0/22
deny from 172.245.24.0/21
deny from 172.245.32.0/21
deny from 172.245.40.0/22
deny from 172.245.44.0/22
deny from 172.245.56.0/21
deny from 172.245.64.0/19
deny from 172.245.96.0/21
deny from 172.245.104.0/21
deny from 172.245.112.0/20
deny from 172.245.128.0/19
deny from 172.245.143.0/24
deny from 172.245.176.0/21
deny from 172.245.208.0/21
deny from 172.245.216.0/22
deny from 172.245.220.0/22
deny from 172.245.224.0/20
deny from 172.245.240.0/20
deny from 179.61.192.0/24
deny from 179.61.252.0/24
deny from 179.61.253.0/24
deny from 191.101.190.0/24
deny from 192.3.0.0/20
deny from 192.3.16.0/22
deny from 192.3.20.0/22
deny from 192.3.24.0/23
deny from 192.3.26.0/23
deny from 192.3.28.0/22
deny from 192.3.32.0/21
deny from 192.3.40.0/21
deny from 192.3.48.0/22
deny from 192.3.52.0/22
deny from 192.3.56.0/22
deny from 192.3.60.0/22
deny from 192.3.80.0/21
deny from 192.3.88.0/22
deny from 192.3.92.0/22
deny from 192.3.96.0/21
deny from 192.3.104.0/22
deny from 192.3.108.0/22
deny from 192.3.112.0/21
deny from 192.3.120.0/21
deny from 192.3.127.0/24
deny from 192.3.128.0/21
deny from 192.3.136.0/21
deny from 192.3.144.0/21
deny from 192.3.152.0/22
deny from 192.3.156.0/22
deny from 192.3.160.0/22
deny from 192.3.164.0/23
deny from 192.3.166.0/23
deny from 192.3.168.0/21
deny from 192.3.176.0/20
deny from 192.3.192.0/20
deny from 192.3.208.0/20
deny from 192.3.224.0/19
deny from 192.210.128.0/21
deny from 192.210.136.0/22
deny from 192.210.140.0/23
deny from 192.210.142.0/23
deny from 192.210.144.0/22
deny from 192.210.148.0/23
deny from 192.210.150.0/23
deny from 192.210.160.0/19
deny from 192.210.192.0/22
deny from 192.210.196.0/22
deny from 192.210.200.0/22
deny from 192.210.204.0/22
deny from 192.210.208.0/23
deny from 192.210.210.0/24
deny from 192.210.211.0/24
deny from 192.210.212.0/23
deny from 192.210.214.0/24
deny from 192.210.215.0/24
deny from 192.210.216.0/22
deny from 192.210.220.0/22
deny from 192.210.226.0/24
deny from 192.210.227.0/24
deny from 192.210.228.0/22
deny from 192.210.232.0/22
deny from 192.210.236.0/22
deny from 192.210.240.0/20
deny from 192.227.128.0/21
deny from 192.227.133.0/24
deny from 192.227.136.0/22
deny from 192.227.140.0/22
deny from 192.227.144.0/22
deny from 192.227.152.0/22
deny from 192.227.158.0/24
deny from 192.227.160.0/22
deny from 192.227.164.0/22
deny from 192.227.168.0/21
deny from 192.227.176.0/22
deny from 192.227.180.0/24
deny from 192.227.181.0/24
deny from 192.227.182.0/23
deny from 192.227.184.0/21
deny from 192.227.192.0/20
deny from 192.227.208.0/20
deny from 192.227.224.0/21
deny from 192.227.232.0/22
deny from 192.227.236.0/22
deny from 192.227.240.0/21
deny from 192.227.248.0/22
deny from 192.227.252.0/22
deny from 198.12.64.0/22
deny from 198.12.68.0/23
deny from 198.12.70.0/23
deny from 198.12.72.0/22
deny from 198.12.76.0/22
deny from 198.12.80.0/21
deny from 198.12.88.0/21
deny from 198.12.96.0/20
deny from 198.12.112.0/22
deny from 198.12.116.0/22
deny from 198.12.120.0/23
deny from 198.12.122.0/24
deny from 198.12.123.0/24
deny from 198.12.124.0/22
deny from 198.23.128.0/22
deny from 198.23.132.0/22
deny from 198.23.136.0/21
deny from 198.23.144.0/22
deny from 198.23.148.0/24
deny from 198.23.149.0/24
deny from 198.23.150.0/23
deny from 198.23.152.0/22
deny from 198.23.156.0/22
deny from 198.23.160.0/23
deny from 198.23.164.0/23
deny from 198.23.166.0/23
deny from 198.23.168.0/22
deny from 198.23.172.0/22
deny from 198.23.176.0/20
deny from 198.23.192.0/20
deny from 198.23.208.0/20
deny from 198.23.224.0/23
deny from 198.23.226.0/23
deny from 198.23.228.0/22
deny from 198.23.232.0/21
deny from 198.23.240.0/22
deny from 198.23.244.0/22
deny from 198.23.248.0/23
deny from 198.23.250.0/23
deny from 198.23.252.0/24
deny from 198.23.253.0/24
deny from 198.23.254.0/23
deny from 198.46.128.0/21
deny from 198.46.128.0/24
deny from 198.46.136.0/22
deny from 198.46.140.0/22
deny from 198.46.144.0/22
deny from 198.46.148.0/22
deny from 198.46.152.0/23
deny from 198.46.154.0/23
deny from 198.46.156.0/22
deny from 198.46.160.0/19
deny from 198.46.192.0/23
deny from 198.46.195.0/24
deny from 198.46.198.0/24
deny from 198.46.202.0/24
deny from 198.46.209.0/24
deny from 198.46.211.0/24
deny from 198.46.217.0/24
deny from 198.46.220.0/24
deny from 198.46.224.0/20
deny from 198.46.240.0/21
deny from 198.46.248.0/21
deny from 198.143.9.0/24
deny from 198.143.12.0/24
deny from 198.144.176.0/21
deny from 198.144.184.0/22
deny from 198.144.188.0/22
deny from 198.206.8.0/21
deny from 199.21.112.0/24
deny from 199.21.113.0/24
deny from 199.21.114.0/24
deny from 199.21.115.0/24
deny from 199.188.100.0/23
deny from 199.188.102.0/24
deny from 199.188.103.0/24
deny from 204.86.16.0/20
deny from 205.234.152.0/24
deny from 205.234.153.0/24
deny from 205.234.159.0/24
deny from 205.234.203.0/24
deny from 206.123.95.0/24
deny from 206.217.128.0/23
deny from 206.217.130.0/24
deny from 206.217.131.0/24
deny from 206.217.132.0/23
deny from 206.217.134.0/23
deny from 206.217.136.0/23
deny from 206.217.138.0/24
deny from 206.217.139.0/24
deny from 206.217.140.0/23
deny from 206.217.142.0/24
deny from 206.217.143.0/24
deny from 207.210.239.0/24
deny from 207.210.254.0/24
deny from 216.170.112.0/24
deny from 216.170.113.0/24
deny from 216.170.114.0/24
deny from 216.170.115.0/24
deny from 216.170.116.0/23
deny from 216.170.118.0/23
deny from 216.170.120.0/23
deny from 216.170.122.0/23
deny from 216.170.124.0/23
deny from 216.170.126.0/23
deny from 216.246.49.0/24
deny from 216.246.108.0/24
deny from 216.246.109.0/24

# Enzu Inc ipinfo.io/AS18978
deny from 23.244.0.0/15
deny from 23.88.0.0/18
deny from 23.88.64.0/19
deny from 23.88.96.0/22
deny from 23.88.100.0/22
deny from 23.88.104.0/22
deny from 23.88.108.0/22
deny from 23.88.112.0/22
deny from 23.88.116.0/22
deny from 23.88.120.0/22
deny from 23.88.124.0/22
deny from 23.88.128.0/18
deny from 23.88.192.0/19
deny from 23.88.224.0/21
deny from 23.88.232.0/22
deny from 23.88.236.0/22
deny from 23.88.240.0/21
deny from 23.88.248.0/22
deny from 23.88.252.0/22
deny from 23.89.0.0/17
deny from 23.89.128.0/18
deny from 23.89.192.0/22
deny from 23.89.196.0/22
deny from 23.89.200.0/22
deny from 23.89.204.0/22
deny from 23.89.208.0/20
deny from 23.89.224.0/19
deny from 38.126.44.0/23
deny from 45.33.144.0/20
deny from 45.59.20.0/24
deny from 45.74.0.0/24
deny from 66.55.72.0/23
deny from 74.82.61.192/26
deny from 103.231.84.0/22
deny from 103.43.188.0/22
deny from 104.151.0.0/17
deny from 104.151.128.0/18
deny from 104.151.192.0/19
deny from 104.151.224.0/22
deny from 104.151.228.0/22
deny from 104.151.232.0/22
deny from 104.151.236.0/22
deny from 104.151.240.0/22
deny from 104.151.244.0/22
deny from 104.151.248.0/21
deny from 104.202.0.0/16
deny from 104.203.0.0/17
deny from 104.203.128.0/17
deny from 104.203.224.0/20
deny from 104.203.240.0/20
deny from 104.250.189.0/24
deny from 104.250.190.0/24
deny from 107.183.0.0/17
deny from 107.183.128.0/18
deny from 107.183.192.0/19
deny from 107.183.224.0/20
deny from 107.183.240.0/20
deny from 108.60.198.0/24
deny from 172.246.0.0/18
deny from 172.246.112.0/22
deny from 172.246.116.0/22
deny from 172.246.120.0/22
deny from 172.246.124.0/22
deny from 172.246.128.0/18
deny from 172.246.192.0/19
deny from 172.246.224.0/20
deny from 172.246.240.0/21
deny from 172.246.248.0/22
deny from 172.246.252.0/22
deny from 172.246.64.0/19
deny from 172.246.96.0/20
deny from 184.105.219.0/24
deny from 192.151.192.0/19
deny from 192.157.192.0/19
deny from 192.157.224.0/21
deny from 192.157.232.0/23
deny from 192.157.234.0/23
deny from 192.157.236.0/22
deny from 192.157.240.0/23
deny from 192.157.242.0/23
deny from 192.157.244.0/23
deny from 192.157.246.0/23
deny from 192.157.248.0/22
deny from 192.157.252.0/23
deny from 192.157.254.0/23
deny from 192.161.80.0/21
deny from 192.161.88.0/23
deny from 192.80.128.0/19
deny from 192.80.176.0/21
deny from 192.80.184.0/23
deny from 192.80.186.0/23
deny from 192.80.188.0/24
deny from 192.80.189.0/24
deny from 192.80.190.0/24
deny from 192.80.191.0/24
deny from 192.80.160.0/20
deny from 198.16.32.0/19
deny from 198.56.128.0/18
deny from 198.56.192.0/19
deny from 198.56.224.0/20
deny from 198.56.240.0/22
deny from 198.56.244.0/22
deny from 198.56.248.0/21
deny from 198.71.80.0/23
deny from 198.71.82.0/24
deny from 198.71.83.0/24
deny from 198.71.84.0/22
deny from 198.71.88.0/21
deny from 198.98.112.0/21
deny from 198.98.120.0/22
deny from 198.98.124.0/24
deny from 198.98.125.0/24
deny from 198.98.126.0/23
deny from 198.98.96.0/20
deny from 199.188.72.0/23
deny from 199.188.74.0/23
deny from 199.193.248.0/23
deny from 199.193.250.0/23
deny from 199.193.252.0/23
deny from 199.193.254.0/23
deny from 199.229.232.0/22
deny from 199.231.208.0/22
deny from 199.231.212.0/22
deny from 199.48.68.0/22
deny from 206.123.134.0/23
deny from 206.123.136.0/22
deny from 206.123.148.0/23
deny from 207.126.160.0/21
deny from 207.189.144.0/20
deny from 207.189.160.0/21
deny from 216.158.192.0/24
deny from 216.158.194.0/24
deny from 216.158.196.0/23
deny from 216.158.199.0/24
deny from 216.158.200.0/22
deny from 216.158.204.0/23
deny from 216.158.207.0/24
deny from 216.158.208.0/23
deny from 216.158.211.0/24
deny from 216.158.212.0/22
deny from 216.158.216.0/24
deny from 216.158.218.0/23
deny from 216.158.220.0/23
deny from 216.158.222.0/24

# Micfo LLC ipinfo.io/AS53889
deny from 8.29.120.0/21
deny from 23.232.128.0/17
deny from 23.232.240.0/24
deny from 23.247.128.0/17
deny from 23.247.143.0/24
deny from 23.247.145.0/24
deny from 23.247.146.0/24
deny from 23.247.148.0/24
deny from 23.247.255.0/24
deny from 24.235.4.0/23
deny from 45.41.26.0/24
deny from 45.59.131.0/24
deny from 45.59.156.0/24
deny from 45.59.186.0/24
deny from 45.59.191.0/24
deny from 45.61.33.0/24
deny from 45.61.37.0/24
deny from 45.61.40.0/24
deny from 45.61.42.0/24
deny from 45.61.46.0/24
deny from 45.62.35.0/24
deny from 45.62.47.0/24
deny from 45.62.55.0/24
deny from 45.62.61.0/24
deny from 45.62.63.0/24
deny from 66.150.32.0/21
deny from 66.151.216.0/22
deny from 66.151.84.0/22
deny from 67.17.32.0/20
deny from 69.25.236.0/22
deny from 74.217.152.0/21
deny from 104.128.138.0/24
deny from 104.143.218.0/24
deny from 104.156.208.0/24
deny from 104.166.98.0/24
deny from 104.167.200.0/24
deny from 104.207.64.0/24
deny from 104.222.132.0/24
deny from 104.222.206.0/24
deny from 104.224.28.0/24
deny from 104.237.88.0/24
deny from 104.243.240.0/24
deny from 104.243.242.0/24
deny from 104.243.243.0/24
deny from 104.243.244.0/24
deny from 104.243.247.0/24
deny from 104.247.110.0/24
deny from 104.247.121.0/24
deny from 104.247.13.0/24
deny from 104.247.21.0/24
deny from 104.247.7.0/24
deny from 104.247.99.0/24
deny from 104.249.139.0/24
deny from 104.249.150.0/24
deny from 104.250.165.0/24
deny from 104.250.167.0/24
deny from 104.250.169.0/24
deny from 104.250.173.0/24
deny from 104.250.176.0/24
deny from 104.250.177.0/24
deny from 104.250.191.0/24
deny from 104.250.235.0/24
deny from 104.250.246.0/24
deny from 104.250.226.0/24
deny from 104.37.2.0/24
deny from 104.243.245.0/24
deny from 107.153.0.0/16
deny from 107.153.45.0/24
deny from 107.168.0.0/15
deny from 107.168.109.0/24
deny from 155.254.111.0/24
deny from 155.254.203.0/24
deny from 167.160.126.0/24
deny from 192.171.224.0/19
deny from 192.200.16.0/20
deny from 192.230.32.0/19
deny from 192.240.192.0/18
deny from 192.255.64.0/18
deny from 192.69.248.0/21
deny from 192.77.240.0/20
deny from 198.22.224.0/24
deny from 199.189.248.0/21
deny from 199.19.124.0/22
deny from 199.223.116.0/22
deny from 199.241.120.0/21
deny from 206.144.161.0/24
deny from 206.144.162.0/23
deny from 206.144.164.0/22
deny from 206.144.168.0/21
deny from 206.144.176.0/20
deny from 206.144.192.0/24
deny from 206.144.208.0/24
deny from 206.144.64.0/22
deny from 206.144.68.0/23
deny from 206.144.71.0/24
deny from 206.144.72.0/21
deny from 206.144.80.0/20
deny from 206.191.152.0/21
deny from 206.191.184.0/21
deny from 206.253.200.0/21
deny from 208.87.164.0/23
deny from 216.52.108.0/22
deny from 216.52.136.0/22
deny from 216.52.56.0/22
deny from 216.52.72.0/22
deny from 216.99.219.0/24

# OVH SAS ipinfo.io/AS16276
deny from 103.5.12.0/22
deny from 142.4.192.0/19
deny from 149.202.0.0/16
deny from 151.80.0.0/16
deny from 167.114.0.0/16
deny from 176.31.0.0/16
deny from 176.31.160.0/22
deny from 176.31.176.0/22
deny from 176.31.184.0/22
deny from 176.31.188.0/22
deny from 178.236.224.0/20
deny from 178.32.0.0/15
deny from 178.32.133.0/24
deny from 178.32.134.0/24
deny from 178.32.135.0/24
deny from 185.10.17.0/24
deny from 185.12.32.0/23
deny from 188.165.0.0/16
deny from 192.95.0.0/18
deny from 192.95.18.0/24
deny from 192.99.0.0/16
deny from 193.104.19.0/24
deny from 193.109.63.0/24
deny from 195.110.30.0/23
deny from 195.246.232.0/23
deny from 198.100.144.0/20
deny from 198.245.48.0/20
deny from 198.27.64.0/18
deny from 198.50.128.0/17
deny from 198.50.175.0/24
deny from 213.186.32.0/19
deny from 213.251.128.0/18
deny from 37.187.0.0/16
deny from 37.59.0.0/16
deny from 37.60.48.0/21
deny from 37.60.56.0/21
deny from 46.105.0.0/16
deny from 46.105.192.0/20
deny from 46.105.192.0/23
deny from 46.105.194.0/23
deny from 46.105.196.0/23
deny from 46.105.198.0/24
deny from 5.135.0.0/16
deny from 5.196.0.0/16
deny from 5.39.0.0/17
deny from 62.245.0.0/19
deny from 8.18.128.0/24
deny from 8.18.136.0/21
deny from 8.18.172.0/24
deny from 8.20.110.0/24
deny from 8.21.41.0/24
deny from 8.24.8.0/21
deny from 8.26.94.0/24
deny from 8.29.224.0/24
deny from 8.30.208.0/21
deny from 8.33.128.0/21
deny from 8.33.136.0/24
deny from 8.33.137.0/24
deny from 8.33.96.0/21
deny from 8.7.244.0/24
deny from 87.98.128.0/17
deny from 91.121.0.0/16
deny from 91.90.88.0/21
deny from 92.222.0.0/16
deny from 94.23.0.0/16

# Keyweb AG ipinfo.io/AS31103
deny from 193.16.98.0/24
deny from 193.22.254.0/24
deny from 195.160.228.0/24
deny from 195.160.229.0/24
deny from 195.160.230.0/24
deny from 195.160.231.0/24
deny from 217.114.208.0/20
deny from 62.141.48.0/20
deny from 84.19.160.0/19
deny from 87.118.64.0/18
deny from 91.213.60.0/24
deny from 95.169.160.0/20
deny from 95.169.176.0/21
deny from 95.169.184.0/22
deny from 95.169.188.0/23
deny from 95.169.190.0/23

# end IP ban

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

Last edited by DJ Maze on Thu Aug 20, 2015 8:25 pm; edited 1 time in total


Thanks for the htaccess syntax, that worked fine!

But I decided to look into why the Security IP's ban didn't work. Was hard slog as I'm not clear on how to debug effectively this deep in the code, but I think I narrowed it down to line 40 of includes/classes/security.php

list(,$ip4) = unpack('N',$ip);
Probably because I was on a 64 bit (linux) system. The code as written may well be OK on 32 bit (although N format is specifically unsigned ???).

The Baidu IPs are of the value that is stored in the database as negative numbers, but there was no way I could get a negative number out of the code as written. Eg. 200.200.200.200 is stored in db as -926365496 but code as written gives me 2130706433. Clearly this won't match banned ranges in db.

The following code works on 64bit in that it gives me the right negative number - and from this it should still work on 32bit systems:

list(,$ip4) = unpack('l',pack('l',ip2long('200.200.200.200')));
Am I on the right track?

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


yes you are!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

All times are UTC


Jump to: