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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:15:04+00:00 2026-06-18T20:15:04+00:00

Suppose my webpage test.html is sending form data to webpage callback.html on same domain,

  • 0

Suppose my webpage test.html is sending form data to webpage callback.html on same domain, how can I validate if form data is sent by test.html not by anybody else? Think test.html as trusted source for callback.html.

<form action="callback.html" methos="post">
<input type="hidden" id="abc" value="User is not authenticated"/>
</form>
  • 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-18T20:15:06+00:00Added an answer on June 18, 2026 at 8:15 pm

    The only secure way to ensure that a POST is coming from a trusted source is to make sure that the transaction involves some information that only your site knows. There are different ways to do this, but a simple one is to use the value of your session cookie as a form field value. Your server would then reject POST transactions that lacked that parameter.

    If your transactions are not secure (https) then there’s not much point anyway.

    edit — I’ll mention that an alternative, if your POST transactions are initiated with XHR, is to add a special “X-Something” header to the request.

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

Sidebar

Related Questions

In a webpage suppose i have the below values: <td> <a href=https://www.test.com/test123/a.html> test11 </a>
Suppose I have the following within a webpage <% using (Html.BeginForm(ShowData, Summary)) %> <%
Suppose we have an applet on a webpage and JQuery code in the same
Suppose you have a webpage that is displaying data in columns. I'm currently separating
Suppose there is a text file link in a webpage. Now I can use
Suppose I want to make a webpage that takes domain name of a website
Suppose you have a webpage that keeps refreshing, like so - how can you
Suppose you have a text-field in your webpage. The value inside text-field is This
Suppose there is a webpage with dynamically generated content -- say a div containing
Suppose I load a webpage which contains the following anchor: <a class=someClass href=# onClick=gotoPage('http://somepage.org')>Link</a>

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.