Question by Simpleton44: How do I make sure jquery .load(file.php) files are only accessed from jquery?
I have php files that generate forms, data views etc. that are gathered via jquery’s .load(file.php).
How can I make sure that these files are only accessed via the jquery and not as a direct URL request?
Answer by rbjolly
I don’t think you can ever fully eliminate this possibility. If this is content you only want viewed by authenticated users, then you’ll have to apply the correct security to the files or directory in question. But even at this point, an authenticated user would still be able to enter the URL directly.
Give your answer to this question below!
There are no revisions for this post.