by bmelton · 16y ago · 0 comments
I have little doubt these IP addresses are from China, as they always are, every time that I investigate, but yeah, generally these get blocked out before launch.
If you're looking for it, there are country-specific blacklists all over the web, but the safer strategy (if you don't want to block out a bajillion potential users) is to look for suspicious activity and auto-blacklist.
Hits to phpmyadmin, 1st.cgi, etc., automatically get blacklisted. A good sysadmin would do the same for portscans and intrusion attempts on non-web ports as well.
phpmyadmin.cgi:
#!/bin/python
import os
print "content-type:text/html"
bad_person = os.environ['REMOTE_ADDR']
os.system("iptables -a INPUT -p tcp -s %s -j drop" % (bad_person))
print "<HTML>"
print "you totally found it!"
print "</html>"