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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:03:00+00:00 2026-05-23T04:03:00+00:00

My web-app has this secret place only some people are allowed to use. When

  • 0

My web-app has this secret place only some people are allowed to use. When a user logs in to my secret place, I try gather as much information from them as I can, concatenate it, hash it, and send it as a cookie. Information such as : User Agent, IP Adress, Users’s password, plus a few more…

When a client requests anything, I regenerate all those things, hash them, and compare them to the cookie the clients sends me.

If some guy steals the cookies, they will probably have different User-Agents from the guy who legally logged in, and the hashes wont match, not letting him in.

If some older-wiser-guy fakes all the http headers, i’ll see the IP address mismatch and the hash wont match.. not letting him in.

There is where my problem resides, what should I do if my legally logged in client loses internet connectivity and the re-establishes it with another IP Adress as his/her ISP leases dynamic IP’s. My current algorithm will say “Aha ! This is an attacker ! Close this session !”.

This secret place is better if not disrupted for valid users, and since, for some reason internet connectivity has been intermittent the last couple of weeks, my users find uncomfortable the fact that the application requires them to re-login every time their IP changes.

Should I discard the IP validation ?

  • 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-05-23T04:03:01+00:00Added an answer on May 23, 2026 at 4:03 am

    Trying to impose security by obscurity or security by complexity is often more prone to exploitation than simple, well-understood security measures.

    You have correctly identified that fixing a session to an IP can be a detriment to user experience. You have to decide whether this inconvenience(especially for TOR or other anonymization and mobile network users) is worth the additional security.

    Bear in mind that an attacker who can intercept communication between your server and the client can likely also communicate with the client’s IP address. It is trivial if he’s in the client’s LAN, and otherwise still simple. So in essence, you’re defending against the nearly-empty set of attackers who are totally incompetent and yet can intercept network traffic in relatively secure high-bandwidth networks (your local installation or core internet routers).

    If security is really such an issue – and it’s usually not unless you’re running a bank, large company, or military-ish organization – better use SSL, check your website for common vulnerabilities, and secure client computers.

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

Sidebar

Related Questions

I have a web application running on Windows IIS. This app has a database
I have C# MVC web app that has some textboxes that in IE9 you
I'm using Bootstrap on a web app that has some pages that contain iframes.
i have an asp.net web app that has this in the web.config file in
my web-app has this: $(window).bind('beforeunload', function() { if(unSavedChanges == true) { return 'You have
I'm currently building a web-app that has one section where the user sees a
I am designing a web app that has some information that needs to be
I am working on a web app. This web app has 4 tabs. When
I am building a GWT app using Mongo for persistence. This web app has
My web app has been chugging along just great in Production for years with

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.