I am creating a PHP script to send emails (based on Amazon ASES).
Therefore, I can make a GET or POST Ajax call for my PHP script:
envoi.php?nom=John&email=john@domain.com
launches an email sent to john@domain.com.
My website has a registration form, which on submit makes a jQuery ajax call to a PHP script (the website and the PHP script are on the same server). I also use a script for other events.
Now I'm worried that this script can obviously be abused if someone gets their url.
How can I protect access to this script?
source
share