Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 48029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:12:55+00:00 2026-05-10T16:12:55+00:00

Folks, we all know that IP blacklisting doesn’t work – spammers can come in

  • 0

Folks, we all know that IP blacklisting doesn’t work – spammers can come in through a proxy, plus, legitimate users might get affected… That said, blacklisting seems to me to be an efficient mechanism to stop a persistent attacker, given that the actual list of IP’s is determined dynamically, based on application’s feedback and user behavior.

For example: – someone trying to brute-force your login screen – a poorly written bot issues very strange HTTP requests to your site – a script-kiddie uses a scanner to look for vulnerabilities in your app

I’m wondering if the following mechanism would work, and if so, do you know if there are any tools that do it:

  • In a web application, developer has a hook to report an ‘offense’. An offense can be minor (invalid password) and it would take dozens of such offenses to get blacklisted; or it can be major, and a couple of such offenses in a 24-hour period kicks you out.
  • Some form of a web-server-level block kicks in on before every page is loaded, and determines if the user comes from a ‘bad’ IP.
  • There’s a ‘forgiveness’ mechanism built-in: offenses no longer count against an IP after a while.

Thanks!

Extra note: it’d be awesome if the solution worked in PHP, but I’d love to hear your thoughts about the approach in general, for any language/platform

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:12:56+00:00Added an answer on May 10, 2026 at 4:12 pm

    are you on a *nix machine? this sort of thing is probably better left to the OS level, using something like iptables

    edit:

    in response to the comment, yes (sort of). however, the idea is that iptables can work independently. you can set a certain threshold to throttle (for example, block requests on port 80 TCP that exceed x requests/minute), and that is all handled transparently (ie, your application really doesn’t need to know anything about it, to have dynamic blocking take place).

    i would suggest the iptables method if you have full control of the box, and would prefer to let your firewall handle throttling (advantages are, you don’t need to build this logic into your web app, and it can save resources as requests are dropped before they hit your webserver)

    otherwise, if you expect blocking won’t be a huge component, (or your app is portable and can’t guarantee access to iptables), then it would make more sense to build that logic into your app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Ask A Question

Stats

  • Questions 58k
  • Answers 58k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Sounds like this may be related to Firefox Bug 215055… May 11, 2026 at 8:52 am
  • added an answer Ah, sorry I figured it out. Patient.Dosing was set as… May 11, 2026 at 8:51 am
  • added an answer You cannot do it without introspecting the stack yourself (and… May 11, 2026 at 8:51 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.