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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:15:50+00:00 2026-06-18T12:15:50+00:00

Not so much a programming language… I’m building a website with many jQuery Ajax

  • 0

Not so much a programming language… I’m building a website with many jQuery Ajax calls, not just to load data but also to perform many actions in my website, including admin specific actions like attributing groups to users, block user access, etc…

I don’t do any user validation via js, my ajax requests get treated by PHP, so for all of these admin actions I firstly make sure that the user is in fact an admin (I check session/database information for this), I think this is the right way to go, but there is one thing that has been bugging me…

Consider this, my admin.php references an external .js file with all these Ajax calls, a common user doesn’t have access to the admin page, but they can very well navigate to my js folder and see my admin.php AJAX scripts, these scripts have of course sensitive information in the parameters, stuff like the URL, the type (POST/GET). I trust (to an extent of course, security is a big deal) my PHP code to secure my application, but it still kinda… grinds my gears… that people know my URLs and what type of calls I make.

Maybe I’m just paranoid, if my code is safe why should I care if people see this information? (although declaring something as SAFE in web development should be the definition of ‘cocky’), either way, this is what I considered:

  • Not using external files on my admin pages, but it makes things not so well organized… I like to separate HTML from JS/PHP/etc
  • Some sort of .htaccess-fu? Denying access to my js folder ultimately breaks functionality, so maybe someone out there has a better idea?
  • Compressing my js files (with http://jscompress.com/ or similar), isn’t really a solution, but it makes things harder to read

Any input on this would be great.

  • 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-18T12:15:51+00:00Added an answer on June 18, 2026 at 12:15 pm

    Why does denying access to your js folder break functionality?
    You can keep the files accessible, but make sure they can’t list contents, which already forces people to “guess” for your filenames.

    Other than that, I honestly don’t see any problem with them being able to deduct the calls you make.

    As long as your calls are secured in your php back-end, this shouldn’t really give you any trouble.

    Furthermore, minifying is a great way to abstract your visible code, but calls will always be easily sniffed out with firebug or Fiddler.

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

Sidebar

Related Questions

I am new to C++/Python mixed language programming and do not have much idea
My primary language is PHP, but I have done some (not very much) programming
not much of a programming question, but development related still, I'm starting Android development
For starters, this question is not so much about programming in the NetBeans IDE
This is not programming related as much as it is software engineering related. I
I am not much familiar with Java Quartz, we just used a test job
TCL is a nice simple programming language, but does not seem to get the
I just start RoR development for two weeks, It's pretty amazing programming language so
Not much to say about this question...
Not much code since I'm a bit at a loss on how to start.

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.