Announcement
Collapse
No announcement yet.
Malicious websites attacking our home?
Collapse
X
-
Originally posted by stevo View PostCan you ban whole countries?
Stevo
Here's an abridged example below that I copied and pasted straight from my .htaccess file that I have sitting in the public_html directory on a Linux server running vBulletin. Yet, it still allows all other incoming TCP/IP traffic. These are the IP address ranges assigned to that country under ICANN.
And when I say abridged example, that is because thread character allocation looks like it's set at default value of 10000. Therefore, I can't post the entire address range for the file without getting the stupid permissions error, but you get the idea.
Code:<Limit GET POST> order allow,deny deny from 31.7.240.0/21 deny from 31.10.56.0/21 deny from 31.15.8.0/21 deny from 31.28.128.0/19 deny from 31.30.0.0/16 deny from 31.31.72.0/21 deny from 31.31.224.0/19 deny from 31.41.200.0/21 deny from 31.41.240.0/21 deny from 31.47.96.0/20 deny from 31.130.168.0/21 deny from 31.132.16.0/20 deny from 31.133.8.0/21 deny from 31.134.216.0/21 deny from 31.135.32.0/19 deny from 31.169.128.0/17 deny from 31.170.176.0/21 deny from 31.177.24.0/21 deny from 31.186.184.0/21 deny from 31.192.64.0/19 deny from 31.207.0.0/18 deny from 31.222.0.0/20 deny from 37.9.192.0/21 deny from 46.13.0.0/16 deny from 46.16.120.0/21 deny from 46.23.48.0/20 deny from 46.23.128.0/20 deny from 46.28.104.0/21 deny from 46.29.184.0/21 deny from 46.29.224.0/21 deny from 46.30.64.0/21 deny from 46.30.88.0/21 deny from 46.30.144.0/21 deny from 46.30.232.0/21 deny from 46.33.96.0/19 deny from 46.36.32.0/19 deny from 46.39.160.0/19 deny from 46.47.128.0/18 deny from 46.135.0.0/16 deny from 46.149.112.0/20 deny from 46.167.192.0/18 deny from 46.173.192.0/20 deny from 46.174.16.0/21 deny from 46.174.32.0/21 deny from 46.174.56.0/21 deny from 46.174.152.0/21 deny from 46.175.88.0/21 deny from 46.175.176.0/21 deny from 46.175.184.0/21 deny from 46.183.56.0/21 deny from 46.183.64.0/21 deny from 46.226.16.0/21 deny from 46.227.8.0/21 deny from 46.227.168.0/21 deny from 46.228.16.0/20 deny from 46.229.112.0/20 deny from 46.231.72.0/21 deny from 46.234.96.0/19 deny from 46.234.160.0/19 deny from 46.243.48.0/21 deny from 46.252.224.0/20 deny from 46.253.96.0/20 deny from 46.254.64.0/21 deny from 46.255.8.0/21 deny from 46.255.224.0/21 deny from 62.4.96.0/19 deny from 62.24.64.0/19 deny from 62.40.64.0/19 deny from 62.44.0.0/19 deny from 62.77.64.0/18 deny from 62.84.128.0/19 deny from 62.109.128.0/19 deny from 62.122.168.0/21 deny from 62.129.32.0/19 deny from 62.141.0.0/19 deny from 62.168.0.0/18 deny from 62.177.64.0/18 deny from 62.182.232.0/21 deny from 62.201.16.0/20 deny from 62.204.224.0/19 deny from 62.209.192.0/18 deny from 62.240.160.0/19 deny from 62.245.64.0/18 deny from 77.48.0.0/16 deny from 77.75.72.0/21 deny from 77.78.64.0/18 deny from 77.87.232.0/21 deny from 77.87.240.0/21 deny from 77.92.192.0/19 deny from 77.93.192.0/19 deny from 77.95.40.0/21 deny from 77.95.192.0/21 deny from 77.104.192.0/18 deny from 77.236.192.0/19 deny from 77.237.128.0/19 deny from 77.240.96.0/20 deny from 77.240.176.0/20 deny from 77.242.80.0/20 deny from 78.24.8.0/21 deny from 78.24.232.0/21 deny from 78.31.24.0/21 deny from 78.41.8.0/21 deny from 78.41.16.0/21 deny from 78.44.0.0/15 deny from 78.80.0.0/17 deny from 78.80.128.0/17 deny from 78.102.0.0/15 deny from 78.108.96.0/20 deny from 78.108.144.0/20 deny from 78.108.176.0/20 deny from 78.110.208.0/20 deny from 78.111.112.0/20 deny from 78.128.128.0/17 deny from 78.136.128.0/18 deny from 78.156.32.0/19 deny from 78.156.128.0/19 deny from 78.157.128.0/19 deny from 78.157.160.0/19 deny from 79.98.72.0/21 deny from 79.98.152.0/21 deny from 79.110.32.0/20 deny from 79.127.128.0/17 deny from 79.141.240.0/20 deny from 79.142.144.0/20 deny from 79.170.248.0/21 deny from 79.171.184.0/21 deny from 80.65.176.0/20 deny from 80.74.32.0/20 deny from 80.78.144.0/20 deny from 80.79.16.0/20 deny from 80.82.144.0/20 deny from 80.83.64.0/20 deny from 80.87.176.0/20 deny from 80.90.128.0/20 deny from 80.92.240.0/20 deny from 80.95.96.0/20 deny from 80.95.112.0/20 deny from 80.95.240.0/20 deny from 80.188.0.0/16 deny from 80.243.96.0/20 deny from 80.250.0.0/20 deny from 80.250.16.0/20 deny from 80.251.240.0/20 deny from 81.0.192.0/18 deny from 81.2.192.0/18 deny from 81.19.0.0/20 deny from 81.19.32.0/20 deny from 81.25.16.0/20 deny from 81.27.192.0/20 deny from 81.28.16.0/20 deny from 81.30.224.0/19 deny from 81.31.32.0/20 deny from 81.90.160.0/20 deny from 81.90.240.0/20 deny from 81.91.80.0/20 deny from 81.91.208.0/20 deny from 81.92.144.0/20 deny from 81.95.96.0/20 deny from 81.162.0.0/20 deny from 81.162.16.0/21 deny from 81.162.80.0/20 deny from 81.162.96.0/19 deny from 81.162.192.0/20 deny from 81.200.48.0/20 deny from 81.201.48.0/20 deny from 82.99.128.0/18 deny from 82.100.0.0/18 deny from 82.113.32.0/19 deny from 82.114.192.0/19 deny from 82.117.128.0/19 deny from 82.119.240.0/20 deny from 82.142.64.0/18 deny from 82.144.128.0/19 deny from 82.150.160.0/19 deny from 82.202.0.0/18 deny from 82.202.64.0/18 deny from 82.208.0.0/18 deny from 82.209.0.0/18 deny from 83.69.32.0/19 deny from 83.136.200.0/21 deny from 83.148.0.0/18 deny from 83.167.224.0/19 deny from 83.208.0.0/16 deny from 83.240.0.0/17 deny from 84.16.96.0/19 deny from 84.19.64.0/19 deny from 84.21.96.0/19 deny from 84.42.128.0/17 deny from 84.242.64.0/18 deny from 84.244.64.0/18 deny from 84.246.160.0/21 deny from 85.13.64.0/18 deny from 85.70.0.0/15 deny from 85.92.32.0/19 deny from 85.93.96.0/19 deny from 85.93.160.0/19 deny from 85.119.88.0/21 deny from 85.132.128.0/17 deny from 85.135.0.0/17 deny from 85.160.0.0/14 deny from 85.193.0.0/18 deny from 85.207.0.0/16 deny from 85.239.64.0/19 deny from 85.239.224.0/19 deny from 86.49.0.0/16 deny from 86.61.128.0/17 deny from 86.63.192.0/19 deny from 87.236.192.0/21 deny from 87.249.128.0/19 deny from 88.81.64.0/19 deny from 88.83.160.0/19 deny from 88.83.224.0/19 deny from 88.86.96.0/19 deny from 88.100.0.0/14 deny from 88.146.0.0/17 deny from 88.146.128.0/17 deny from 88.208.64.0/18 deny from 89.22.64.0/19 deny from 89.24.0.0/17 deny from 89.24.128.0/17 deny from 89.29.0.0/17 deny from 89.31.8.0/21 deny from 89.31.40.0/21 deny from 89.31.160.0/21 deny from 89.102.0.0/15 deny from 89.107.128.0/21 deny from 89.111.64.0/18 deny from 89.176.0.0/15 deny from 89.185.224.0/19 deny from 89.187.128.0/19 deny from 89.187.160.0/19 deny from 89.187.192.0/21 deny from 89.190.32.0/19 deny from 89.190.64.0/19 deny from 89.203.128.0/17 deny from 89.221.208.0/20 deny from 89.233.128.0/18 deny from 89.235.0.0/18 deny from 89.239.0.0/18 deny from 89.248.240.0/20 deny from 89.250.96.0/20 deny from 89.250.240.0/20 deny from 90.176.0.0/13 deny from 91.102.96.0/21 deny from 91.103.160.0/21 deny from 91.146.120.0/21 deny from 91.187.32.0/19 deny from 91.190.128.0/21 deny from 91.192.32.0/22 deny from 91.193.132.0/22 deny from 91.194.140.0/23 deny from 91.195.106.0/23 deny from 91.195.202.0/23 deny from 91.197.116.0/22 deny from 91.199.164.0/24 deny from 91.199.168.0/24 deny from 91.199.207.0/24 deny from 91.201.20.0/22 deny from 91.202.52.0/22 deny from 91.204.20.0/22 deny from 91.204.136.0/22 deny from 91.206.91.0/24 deny from 91.207.188.0/23 deny from 91.209.101.0/24 deny from 91.210.16.0/22 deny from 91.211.44.0/22 deny from 91.211.80.0/22 deny from 91.212.158.0/24 deny from 91.213.10.0/24 deny from 91.213.122.0/24 deny from 91.213.143.0/24 deny from 91.213.160.0/24 deny from 91.213.211.0/24 deny from 91.213.244.0/24 deny from 91.214.156.0/22 deny from 91.214.192.0/22 deny from 91.215.12.0/22 deny from 91.216.168.0/24 deny from 91.216.179.0/24 deny from 91.216.185.0/24 deny from 91.217.52.0/23 deny from 91.217.96.0/23 deny from 91.218.188.0/22 deny from 91.218.232.0/22 deny from 91.219.44.0/22 deny from 91.219.240.0/22 deny from 91.219.244.0/22 deny from 91.220.122.0/24 deny from 91.221.2.0/23 deny from 91.221.46.0/23 deny from 91.221.72.0/23 deny from 91.221.108.0/23 deny from 91.221.140.0/23 deny from 91.221.148.0/23 deny from 91.221.212.0/23 deny from 91.222.52.0/22 deny from 91.222.204.0/22 deny from 91.222.244.0/22 deny from 91.223.74.0/24 deny from 91.224.16.0/23 deny from 91.224.48.0/23 deny from 91.224.90.0/23 deny from 91.224.102.0/23 deny from 91.225.84.0/22 deny from 91.226.216.0/22 deny from 91.227.7.0/24 deny from 91.227.96.0/23 deny from 91.227.134.0/23 deny from 91.227.195.0/24 deny from 91.227.232.0/22 deny from 91.228.100.0/24 deny from 91.228.216.0/22 deny from 91.229.100.0/24 deny from 91.229.252.0/22 deny from 91.230.144.0/24 deny from 91.230.184.0/22 deny from 91.230.210.0/23 deny from 91.231.28.0/22 deny from 91.231.171.0/24 deny from 91.232.82.0/24 deny from 91.232.84.0/22 deny from 91.232.199.0/24 deny from 91.232.202.0/23 deny from 91.232.204.0/22 deny from 91.232.212.0/22 deny from 91.232.216.0/23 deny from 91.232.218.0/23 deny from 91.232.220.0/22 deny from 91.232.247.0/24 deny from 91.233.28.0/22 deny from 91.233.40.0/23 deny from 91.233.42.0/23 deny from 91.233.44.0/22 deny from 91.233.48.0/23 deny from 91.233.55.0/24 deny from 91.233.62.0/24 deny from 91.233.63.0/24 deny from 91.233.66.0/23 deny from 91.233.92.0/22 deny from 91.233.116.0/23 deny from 91.233.150.0/24 deny from 91.233.164.0/22 deny from 91.233.188.0/23 deny from 91.233.208.0/22 allow from all </Limit>
Comment
Comment