If you want to protect usage, you can use a single-key algorithm. Ask the server to generate the key that the page will contain in the variable or attribute. Then, in the load command, you pass the key to content.php as follows:
key = $("{some selector to get the key}") $('#content').load("content.php?id=" + id + "key=" + key);
After the page makes a call to the server using the key, the server expires the key, which makes it unusable. This way, only active page requests will have access to your content.php file.
This method is still not a proof, but makes access to content.php difficult for the user.
nopuck4you
source share