Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


  Search this Thread
Old 08-24-2006, 04:28 PM   #1
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
Banning IP addresses

Suppose Joe forum owner wants to ban Joe spammer from his website by blocking the IP address. Since most residential connections are dynamic IP, what's stopping Joe spammer from reconnecting and coming back with a new IP address? And what happens when Joe average user is reassigned Joe spammer's old IP? Is Joe average user banned too?

Just wondering...
Old 08-24-2006, 04:41 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I don't know about how you would do that, but there are other methods. You could require a signup and email verification (i.e. they sign up with an email, then have to go and activate their account) which might block some bot-type spammers. Maybe require them to also type a keycode made of gifs instead of plain text. By having a signup you would have a master list of those who signed up that you could also blacklist if they became spammers.

Also, like LQ does here, disable posting links until after the 5th post.

Note that I have no idea how to actually implement this stuff. Just seen it done...
Old 08-24-2006, 09:38 PM   #3
Registered: Apr 2006
Posts: 280

Original Poster
Rep: Reputation: 31
I'm not a forum owner or looking to ban anyone myself, just wondering how it works, because I know it's used. I'm pretty sure Wikipedia for one uses it to ban users who abuse the system.
Old 08-24-2006, 09:56 PM   #4
Registered: May 2005
Distribution: Debian
Posts: 83
Blog Entries: 2

Rep: Reputation: 15
You could ban the entire ISP. That's basically all that you can do. Since as you say your IP changes, there isn't actually a practical way of banning somebody without banning their entire ISP. So you set a ban on 1.2.*.* or something like *
Old 08-25-2006, 12:22 AM   #5
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
I was banned before on another forum for spaming(goes way back a long time ago).

They dont' bann a single IP. They bann a subnet of IP.

Hope that helps
Old 08-25-2006, 05:14 AM   #6
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
Perma-banning IS useless. you're better off doing what the previous users said. Disable guest posting. Require email or use captchas. If you don't have moderators then limit spam posting by having the captchas appear after a certain.

Temporarily Banning ips is only good for services that have no other way of preventing spammers or brute forcers, like ssh or http authentication, web crawlers or as icing on the cake. Changing ips is as simple as changing your mac address or rebooting your modem. In fact banning ips carries a small risk. Because of the dynamic nature of ip number assigning, theirs a chance you will affect innocent viewers. That individual you inadvertently blocked out might have been the potential vistor you needed. Someone who might have advertised you, bringing your site from obscurity to internet stardom.
Some enterprising bastard with time and possibly the money(to have multiple isps) might attack your IP banning server with the sole intent of increasing the number of ips in the ban pool until your server blocks the whole internet. Eeeep!

Well okay, maybe thats a bit of a stretch. But you figure 15 minutes is a good maximum ban time. With a 30 second ip ban response time configured and some delayed logins/posting after a certain number of consective spam attempts, you're more than safe. The person would really have to have it in for you to bother after this.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
banning multiple IP's with iptables cylarz Linux - Security 6 05-22-2006 03:42 PM
MEPISlovers banning certain people? galen Linux - Distributions 10 12-15-2004 12:47 AM
banning IP addresses in samba HedAche Linux - Networking 4 07-02-2004 04:01 PM
banning an IP digsby0007 Linux - Security 11 02-27-2004 12:02 AM
banning an ip im1crazyassmofo Linux - General 18 04-10-2003 10:07 AM > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration