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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:15:23+00:00 2026-06-08T12:15:23+00:00

My site is under a brute force attack in which the attackers are attempting

  • 0

My site is under a brute force attack in which the attackers are attempting to gain access to user accounts. The bots do not have a user agent. I have a system in place that blocks a person from signing in if they exceed 3 attempts per account in under 10 minutes.

I also made it check for a user agent, and if not, exit.

My question is: Are sessions only stored in browsers? What I’m thinking is that they are using a script executed via command line.

I’ve implemented this as well:

if(!isset($_COOKIE[ini_get('session.name')])) {
header("HTTP/1.0 404 Not Found");
exit;
}

Is there anything else I can do to prevent these attacks?

  • 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-08T12:15:25+00:00Added an answer on June 8, 2026 at 12:15 pm

    A session variable’s content is stored on the server, however, the session is identified by a session ID which is stored at the client and sent with each request. Usually the session ID is stored in a cookie, but it can also be appended to URL’s.

    There’s quite an interesting read on session hijacking on Wiki and also one at PHP Security Consortium that should give you a better understanding as to what hijacking is about and how to prevent it.

    There are a lot of methods to help prevent these attacks, I’ve pointed out three:

    • Use PHP’s session_regenerate_id() after the user successfully logs in.
      This creates a new session ID, different from the one that was created when they first visited the public/safe area, if there was a session started of course.
    • Record the user’s IP address, session ID and user agent when successfully logged in. Check the IP and user agent for every request and if the IP and agent doesn’t match for this session, make them log in again. Beware though, sometimes a user’s IP can change and may annoy somebody. Also be aware that a user agent can easily be spoofed, too.
    • Use SSL/TCL to hide the information sent in a request.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to go to the site which currently under DDoS attack or Under
My site is under DDos Attacks (UDP Flooding)! I have no access to linux
I'm running MOSS 2007 and have created a new site under an existing one
I have Selenium running under Cruise Control to test our site once a day.
In my portfolio site I have listed my projects under separate tabs (tab menu).
I have many static images under a directory in my site structure, and I'm
I have a SharePoint feature that is activated under 'Site Collection Features' that is
I have my site under the latest version of Jquery. There's two problems however:
This is a brute force attempt to solve the problem, but it is not
We used to have the production site under SVN control. We are now working

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.