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

The Archive Base Latest Questions

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

In writing a login module, I want to log IP’s as an additional measure

  • 0

In writing a login module, I want to log IP’s as an additional measure for verifying who’s on the other side is still the same person on the other side.

I’m using $_SERVER['REMOTE_ADDR'] as one (of many) ways to get the remote machine’s IP address. Aside from an IPv4 or IPv6 address, are there any other values i should expect this to return?

  • 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-12T16:18:33+00:00Added an answer on May 12, 2026 at 4:18 pm

    There’s really no added security to checking IP addresses as these can be easily spoofed and anyone who’s savvy enough to be intercepting POST transactions is probably doing this anyways.

    Also, you may be potentially annoying legitimate users. Think of the instance where a person may be in a location where there are several free open wifi hotspots. When they get to your login page, they may be connected to one hotspot but by the time they sign in, their machine may have decided another router is a better option and therefore their IP will change. Believe it or not, this may deter some (albeit, very few) easily-frustrated users.

    Honestly, I just wouldn’t bother. Using SSL, if you can, is usually the best way to go to avoid security issues like the one you’re describing. Good luck with your project.

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

Sidebar

Related Questions

I'm writing a Login page in wicket by java and want to write it
I'm writing a module in Drupal-7 that dynamically sends a one-time login link to
While writing a login system for a web project Im working on I came
i am writing code for login application. can anyone help me how to parse
I'm new to JavaFX and I'm writing a simple login application that I would
I am currently re-writing my functions script (PHP) for my login system. Is the
I'm writing an application that displays Google Map right after the login screen. The
How would you explain to a non-technical person why writing code (business-logic) behind the
I was writing a simple login form, everything works fine (validation etc.) but I
If writing a module to add and modify some catalog logic. Is there anything

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.