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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:57:16+00:00 2026-06-06T11:57:16+00:00

In a Website environment how do you make an ajax post to Handler.ashx secure

  • 0

In a Website environment how do you make an ajax post to Handler.ashx secure and how do you stop people calling that handler.ashx directly and putting rubbish in and possibly breaking things server side?

With firefox and firebug you can pretty much hack the post quickly and easily.

I was thinking of these ideas.

  1. In the handler check if you are logged in.
  2. List item on the load of the site create a unique ID is saved as a cookie and
    when the handler is called then that ID must exist in the Ajax and
    the handler
  3. List item the ajax call must come from a certain page

Do you have any other ideas?

Thanks

  • 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-06T11:57:18+00:00Added an answer on June 6, 2026 at 11:57 am

    Short answer

    Use authentication (Windows, Forms, etc) and validate your input.

    Slightly longer answer

    If your site is configured with an authentication provider, your handler will follow the same rules.

    You should always validate any user input or web service input. Don’t assume that your client is giving you pristine input. As you have mentioned, anyone with basic web development skills can spoof a POST. Keep that in mind when validating.

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

Sidebar

Related Questions

I have a website that per original developer was working on local environment. I
I have used this tutorial to make a website, but I would like that
I just moved my website (asp.net) to the live environment. I realized they are
for website that embed flash to capture camera (red5..etc). may i know is there
I am attempting to make it so that we can have our application to
I have an existing website that I need to develop a small portion of
Codeigniter has its 'ENVIRONMENT' setting such that when in a production environment, by changing
I would like to make a website always have www in the address, and
I'm evaluating options to make our search more powerful on our .Net website. I
We're currently developing a website (TYPO3 under Apache) for a customer that is supported

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.