Sami Posted July 25, 2010 Share Posted July 25, 2010 Hi.Somebody are spamming in my (homemade) guestbook whit adds.I've tried to IP-ban them, but theyre changing it:190.144.87.108190.144.87.109How can I limit the access to post to scandinavia(Norway, Sweden and Denmark)? Link to comment Share on other sites More sharing options...
Synook Posted July 25, 2010 Share Posted July 25, 2010 You can use an IP geolocation service to check users' locations via their IPs. These usually cost though.Why don't you just implement anti-spam systems, like CAPTCHAs and content filters like Akismet? Link to comment Share on other sites More sharing options...
wirehopper Posted July 25, 2010 Share Posted July 25, 2010 Since you have the IP address, you can use an .htaccess file with these directives:Order Allow,DenyAllow From AllDeny From 213.5.71.12 # <-- If you change this to 213.5.71, it will block everything from 213.5.71.0 - 213.5.71.255Visitors will get a 403 - Forbiddenhttp://httpd.apache.org/docs/2.2/howto/access.htmlYou also might want to check out: http://www.ipdeny.com/ Link to comment Share on other sites More sharing options...
End User Posted July 25, 2010 Share Posted July 25, 2010 These are a few services that you could try using:http://www.ip2location.com/ << lots of dev API optionshttp://www.ipaddressgeolocation.com/ << untestedhttp://www.maxmind.com/ << may cost for some lookupshttp://ezinearticles.com/?IP-Address-Geolo...&id=3142927 << ??http://jetscripts.com/geotool/ << one-time feehttp://articles.techrepublic.com.com/5100-...11-6103179.html << Uses the Maxmind DBhttp://www.ipligence.com/free-ip-database << untested Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.