I am currently making a small website with google charts. I load the information with a ajax request from this url ‘data.php’
The problem is that anyone can enter that url and get the response. A person can also abuse that url. Like spamming it 1000 of times. Is there a way I can protect that from happening.
I myself thought about using a php sesion variable. So that the users needed to have the home-page open first before it could continue.
So I dont know if there are other ways of protecting a URL used by ajax request.