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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:15:04+00:00 2026-05-23T23:15:04+00:00

When building a webapp, I’d like form data / interaction to be all driven

  • 0

When building a webapp, I’d like form data / interaction to be all driven by AJAX APIs. However, a lot of these APIs would be retrieving data objects (JSON) and I’d really only like my web app to use them. Is there any way to architect the API in such a way that only my website can call it? It feels like it would be a losing battle.

For instance, I could check if the domain making the request is mine, but a host header can be spoofed.
jsonp doesn’t solve it for me since someone could just write a service in Java or something to make requests outside of a browser sandbox

I’m thinking there might be something with security tokens and generating one, but I feel like any real measure I take can be spoofed by a clever scraper.

  • 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-23T23:15:06+00:00Added an answer on May 23, 2026 at 11:15 pm

    You’re right to say that it’s a losing battle. If you give protocol code for your client to run legitimately, then your client can run the code illegitimately as well.

    So in that light, I think your only defense is obfuscation. There are two parts to it: making the code hard to understand so that an attacker cannot use the code, and making the protocol hard to understand so that the attacker cannot use an HTTP protocol analyzer.

    Disclaimer: I am answering how he/she can hide the AJAX API, not answering whether it’s moral/ethical to do so.

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

Sidebar

Related Questions

I am building a demo dataset for my webapp. I would like thousands of
I am building a webapp in Silverlight 4.0 and I would like it to
I'm building an AJAJ (AJAX with JSON) webapp with jQuery and I'd like my
i am building a webapp that will have notes fields all over the place,
I'm building a Webapp that uses OpenId to authenticate users, like Stackoverlfow does. There
I'm building a webapp. HTML+AJAX <--> PHP <--> MySQL; very traditional. What I need
I'm building a webapp in MySQL/PHP/Javascript. In PHP, I've got all the classes from
Issue What is your strategy for building a desktop-like webapp that needs to be
Building a web app here and I would like to be able to alternate
I'm building a webapp using php, ajax, javascript, mysql. I've been worring about something

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.