I went around and searched for this solution forever, here is my problem:
I have a function to call a .PHP file that will receive POST data and execute PHP according to the data, for example:
if ($_POST["data"] == "delete")
if ($_POST["data"] == "reset")
So basically I can Ajax from the same domain so that the file works according to my data. Ajax absolutely cannot cross the domain here. My problem is in PHP, I found a call to the cURL () function that can send data to my PHP site, and I searched many methods on Google, but I canβt find a solution so that people cannot cURL on my site, I found out that they can use Session for something, but even if I use Session, there is always a way to pass it (I saw it while I was doing a search).
So my question is: is there a way to prevent the publication of data on my site? I'm sure they cannot use Ajax, but I'm really worried about cURL in PHP.
I appreciate any suggestion.
Thank you guys in an advanced state. [X]
source
share