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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:03:06+00:00 2026-05-13T18:03:06+00:00

We have created a database driven website using PHP with set cookies and now

  • 0

We have created a database driven website using PHP with set cookies and now need to prevent HTTP spoofing, any ideas on how to do this? we are beginners with this so any help would be greatful

  • 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-13T18:03:06+00:00Added an answer on May 13, 2026 at 6:03 pm

    You cannot “spoof” HTTP requests. You send a request to the server, and the server responds appropriately.

    I think what you are trying to prevent is cookie spoofing. Considering that cookies are stored on the client-side, there is nothing you can do to prevent users from modifying theirs contents.

    Do not store sensitive information in your cookies. They are not secure and easily read and modified by the client.

    Use PHP sessions instead. The full explanation on how sessions work and how to keep them secure can be read in one of my previous answers.

    Essentially, securing sessions is done on two fronts:

    • Preventing session fixation
      Regenerate a new session_id every X number of requests in order to reduce the amount of time an attacker has to steal the id.

    • Uniquely identify the client
      Use the IP and/or the User-Agent to uniquely identify the client and check that value on every page load against the ones stored in the session. This is really the only two choices you have to uniquely identify the client.

    Even with that in place, no solution is fool-proof and once your session_id is compromised, you are pretty much done for.

    Again, for an in-depth explanation, please see my previous answer.

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

Sidebar

Related Questions

I have created a MySQL database using MySQL Workbench. It has about 20 tables.
I have created SQL Server 2008 Database project using visual studio 2010. after build
I have a database that I have created using SQL Server Developer 2008. I
I have written a dynamic database driven, object oriented website with an administration frontend
I'm developing a website (using asp.net-mvc) with a SqlServer 2005 database. I have numerous
Here's the problem I'm trying to solve: I have a dynamic php-driven website that
I have created a web system using Java Servlets and now want to make
I'm using JDBC for very simple database connectivity. I have created my connection/statement and
I have created a program, i need to save the content into mysql database.
I have created my database by this sql query: (CREATE DATABASE + DBName +

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.