How to ban thousands of IP addresses on 2008 Server

0

I'm trying to block the Tor Project network from my webserver as many spam/malicous scripts are using it to flood my API.

I've tried almost every method possible it seems there is NO WAY to append IP's to an existing rule using "netsh advfirewall firewall" and when I try to add all the IP's from a single command line I hit the command prompt character length limit and can only add about 100 or so IP's of the 6,000.

when using netsh -f "script file" also seems to have the same limitations.

so what is the best method for blocking these IP's?: https://www.dan.me.uk/torlist/

Thanks.

bfritz

Posted 2014-09-21T02:20:37.323

Reputation: 101

What's the OS version? – EliadTech – 2014-09-21T08:22:35.377

Windows Server 2008 R2 Standard SP1 with IIS7 – bfritz – 2014-09-21T10:03:59.003

Have you tried combining it with powershell? – EliadTech – 2014-09-21T11:14:15.737

Also, have you considered using Application Control Policies (a.k.a AppLocker)? You can block all executables quite easily, and allow only those you know. Only the most advanced malware can bypass that. – EliadTech – 2014-09-22T08:57:36.723

No answers