I was wondering if there was a way I can get a json file (currently using $.getJSON) without showing the get url in the ‘view source’
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Not really. I mean, you could derive it from something else via a complex function, but even then, it’s there, just obscured.
And if you did, someone could just as easily snoop the file path using the browser’s built-in diagnostic/debugging tools as they could from View Source (the “Network” tab in Chrome, for instance — all major modern browsers have debugging tools built in now). Here’s me snooping on the path Stack Overflow uses to give details of upvotes/downvotes (for those with enough rep to see the breakdown):
Or they could use the debugger (see the “Scripts” tab) to inspect the string variable the calculation ended up with. Etc. Basically, if the browser knows enough to be able to retrieve the resource, the user can find out what that path was.
The only thing I can think of is to use a plug-in, like Flash or Java, to retrieve the resource and then display it. That would raise the bar a little (the path would still be accessible to anyone with a network analyzer or proxy).