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 9088975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:01:49+00:00 2026-06-16T22:01:49+00:00

What can I do when I get an obvious hacking attempt? I wish there

  • 0

What can I do when I get an obvious hacking attempt? I wish there was an easy way to cause them to waste their time, that doesn’t involve server resources. Even a delay of a few seconds could render brute force attacks futile.

Sending them to an AsyncContext seems too processor intensive, and a timeout will automatically resend the same request back to the beginning where it started. Which might actually aide a DOS attack.

I am using Jetty and know about the DoSFilter, but it would be much more effective if I could delay a response when I detect foul play, which is rather easy to sense in my case. I think every failed validation / authentication attempt should automatically delay a response somehow.

I am not really authenticating here, so an authentication protocol/frontend is not useful. I am just validating the connection parameters for patterns that meet certain criteria. I know TCP/IP will notify, but if I could disconnect invalid access attempts silently and keep them hanging, that would be ideal.

  • 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. Editorial Team
    Editorial Team
    2026-06-16T22:01:50+00:00Added an answer on June 16, 2026 at 10:01 pm

    I think that, if you detect a fool play, it would be more wise to block their ip for a certain period. It would be easy just adding their ip in /etc/hosts.deny (it works for many unix daemons, but I am not sure if it works with java processes too, I think it should work since it’s used by the tcp daemon itself). man 5 hosts.deny at the command line gives some hints (or check this online link).

    BTW, I think you can use Thread.sleep() to pause a servlet, as in any normal java code. But this, would probably cause more request from the same caller to keep open for long time, increasing the active resources that the application server has to allocate and maintain. So if the attacker can work in multithread, possibly this will help him to block your server, as it will hold all the threads for his attack, blocking all other users to access your service.

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

Sidebar

Related Questions

Sorry if this is obvious but have looked around and can't get this working:
This seems like I'm missing something obvious but I can't get redirects (>) to
I must be missing something obvious here... I can't get .change() to fire on
Probably I'm just missing something obvious, but I can't get the image in my
Am I not seeing something obvious here, can't seem to get this to work...
I have a SQL database that contains a field. I can get all of
I can't seem to get the color values/names correct so that I can get
First, I'd like to thank anyone that can get me through this in advance.
Is there an instrument that can find me a place in my project which
It doesn't seem that I can get to any of the usual namespaces using

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.