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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:01:59+00:00 2026-05-28T02:01:59+00:00

I am creating a web application that uses JQuery’s AJAX calls as it deals

  • 0

I am creating a web application that uses JQuery’s AJAX calls as it deals with all of the browser inconsistencies.

However, as the code is very much easily readable from the browser I have has concerns about what security measures I can use to protect the web application from attack.

I will be obviously doing authentication checks for the server side code to ensure that they have access to the data that they are trying to access. However, I have also been trying to look into ways of stopping CSRF attacks as well as looking into ways of ‘obscuring’ the code so it is not easily readable via View Source in the browser.

What steps should I be taking to ensure that security is at a good level?

Also is injecting data into a jquery script via PHP a bad idea?

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-05-28T02:02:00+00:00Added an answer on May 28, 2026 at 2:02 am

    There’s no easy answer to your main question. You should read the OWASP guide on CSRF prevention and go from there.

    And there’s plenty of options out there for obfuscating javascript, but none of them will increase the security of your code. If an attacker really wanted to read your obfuscated code, he could just pick through it by hand or write a parser for it and simply de-obfuscate it. Not a viable security technique.

    Also is injecting data into a jquery script via PHP a bad idea?

    As long as you have no problem with the world seeing that data, no it is not a bad idea. If the data is sensitive, you’ll probably want to keep it server-side, or hash it with a salt and then insert the hashed value into the script. Of course, this hash is rather unusable client-side because you must not include your salt in anything client-side (this would defeat the purpose of obfuscating the data in the first place). If you want to make use of that data, you’ll need to ajax it back to your server and process it there.

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

Sidebar

Related Questions

I’m creating an application that uses Core Data to store information and uses web
I am creating a web application within GAE environment. It heavily uses AJAX/JSON to
I'm am creating an ASP.NET 2.0 web application that uses a BasePage.aspx that is
I am creating a web application that is accessing a SQLite database in the
In considering languages to use in creating a web-application that interfaces with a database
I am interested in creating a simple web application that will take in user
I'm writing a web application that involves a continuous cycle of creating (and removing)
I am creating an web application and I at the point that i am
I'm creating a small application on an embedded device that has a boa web
I have a web application that uses a relational database (MySQL). We're adding 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.