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

  • Home
  • SEARCH
  • 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 9239013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:53:26+00:00 2026-06-18T07:53:26+00:00

My website is very dynamic and its collecting data from the database. while I

  • 0

My website is very dynamic and its collecting data from the database. while I was testing I pressed the refresh key and hold it for some time, the server went down. (This is a simple DoS attack). How can I stop user to keep hitting the refresh button.
Can anyone tell me the solution for that. Like gmail does, go to gmail account and press F5 and hold it for some time. Gmail will display this message

“We’re sorry, but your Gmail account is temporarily unavailable. We apologize for the inconvenience and suggest trying again in a few minutes. You can view the Apps Status Dashboard for the current status of the service.”

Thanks

  • 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-18T07:53:28+00:00Added an answer on June 18, 2026 at 7:53 am

    Why not use the counter approach. Increase it till a threshold is reached within a small interval and if so then block access.

    The JSP for it would be something like this

     <% 
            int refresh;
            if(session.getAttribute("pageRefresh")==null)
                 refresh=0;
            else
                refresh = (Integer)session.getAttribute("pageRefresh") + 1;
    
    
           session.setAttribute("pageRefresh", refresh); 
    
           session.setMaxInactiveInterval(10000);
    
           if (refresh>100)
           {
               //error message or black list client
           }
    %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing some testing for a very large website, created many different developers.
While website loading speed testing I found that website is sometimes loading very quickly
I would like to scrape some dynamic data off of a website. On the
I have just found something very weird while developing a website. While trying to
I need to produce a very simple website (no dynamic-content, 2-columns, header&footer) and I
I am having some trouble creating a experimental 'dynamic' style website. The site is
I am currently working on a large-scale website, that is very dynamic, and so
I have a website in which the total dynamic content is very small (say
I know securing any website is a very tough and broad topic to be
I've built a very simple website using PHP Includes to display the footer and

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.