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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:51:06+00:00 2026-05-26T03:51:06+00:00

Simple question: How to detect if the form data posted to my site is

  • 0

Simple question: How to detect if the form data posted to my site is done through cURL and not through the site’s form page.

(Ex) user runs curl -H”Host: http://mysite” POST “post data” http://mysite for any form in the site.

Since it is possible to set Referer and User Agent, i believe that they don’t qualify as filtering criteria. Any suggestions or solutions are welcome.

Thanks & Cheers!!

  • 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-26T03:51:07+00:00Added an answer on May 26, 2026 at 3:51 am

    Add a token to your form that you generate dynamically and store it in the users session. When the user submits a form check that the token from the form matches the token that’s in the session. This token should change every time the form is rendered. This will allow the form to be submitted only one time.

    If the user submits a form with a stale token, just have them repost the form again with an error messages saying the form was stale and they need to repeat the operation again.

    Curl can emulate a browser so nothing is going to be 100% effective, but this covers most of the cases.

    You could also have this token field filled by JavaScript since curl doesn’t execute it.

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

Sidebar

Related Questions

Simple question here: How can I detect when I user swipes their finger on
I cannot find a simple example about my question above: how can i detect
Simple question that keeps bugging me. Should I HTML encode user input right away
Simple question: How do I detect that the onscreen keyboard has been displayed on
I want to have a 404 page that can detect if a user has
I've got one quick question. Is there any simple way to detect if .net
How can i detect external link click? I have a simple question, which may
A pretty simple and straightforward question... is it possible for a service to detect
Simple question, but one that I've been curious about...is there a functional difference between
Simple question, how do you list the primary key of a table with T-SQL?

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.