Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Blocks Shodan IPs From Scanning Your Servers.
import os
shodan = ["", "", "","", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]
for ip in shodan:
os.system("iptables -A INPUT -s {} -j DROP".format(ip))
Copy link

urekxmazino commented Oct 12, 2021

can you add zoomeye ips as well

Copy link

Jolly-Pirate commented Jan 22, 2022

Cencys are courteous and provide instructions to opt out, with a list of IP's to block.

Copy link

webzcom commented May 25, 2022

I'll have to check my research notes if I have them but I had found a SHODAN server in the range. It was all cloud hosting so I blocked them all but there is a SHODAN server in there somewhre.

Copy link

jfqd commented May 25, 2022

shodoan uses hostnames, you can check by a ptr scan of the subnet and there is one host in it:

Copy link

63kk0 commented Jul 22, 2022

Just an FYI, the list of servers represented here is incomplete.

Here is the list I had compiled (yes, some are PTR-only records, and that is not listed here) based on this:

IP Domain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment