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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:55:22+00:00 2026-05-22T15:55:22+00:00

I have a website on Domain A that has a page with an html

  • 0

I have a website on Domain A that has a page with an html form that a user can enter a string into, which submits to Domain B.

The form currently contains a hidden input field with a name/value that Domain B uses to “authenticate”/identify Domain A.

Now, I’m primarily a C# coder with minimal web experience and even I know this isn’t a secure way to do this.

What is the best way for a form on Domain A to submit to Domain B securely?

Some ways I’ve considered:

Have Domain B identify Domain A by domain name or IP. I suppose this would be better than a hidden input field, but domain name and IP could be spoofed, correct?

Have Domain A pass authentication credentials (user/pass for example) to Domain B via some other method besides a hidden field. Not sure how.

Edit

Another possibility: Create a private/public key. Have Domain A pass the private key to Domain B who validates using the public key, possibly via HTTPS. Not sure how Domain A would pass the private key without exposing it in the HTML. Ideas?

  • 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-22T15:55:23+00:00Added an answer on May 22, 2026 at 3:55 pm

    A hidden input with a value to authenticate the user CAN be a secure method depending on what the value is and how it’s generated. You could have Domain A make an AJAX call to Domain B requesting a token which must be submitted along with the form.

    This token should only be accepted only once by domain B and should also expire after a certain amount of time.

    Finally, you can also send along an identifier for the user. This should be encrypted in some way for transfer. I would suggest either HMAC or public key encryption.

    Option 2: Use OpenID 😉

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

Sidebar

Related Questions

I have a .NET powered website, that has a sign-up box form already. I'm
If I have 2 domain names that point to same website (for example: microsoft.com
I have a website that plays mp3s in a flash player. If a user
I have made a sample page, which has a logo page. It asks the
I'm building a website with Rails which can let user check if some domains
I have a website that has two domains pointing to the same content. Let's
I've got a website that has windows authentication enable on it. From a page
I have a website, and in the Contact section I have a form which
I'm trying to redirect requests that have a query string to a different domain
I have a website that I am translating into different languages. I have the

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.