|How can my PHP script verify that a 2-Way request came from Now SMS?||Search|
|SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through April 11, 2011 » How can my PHP script verify that a 2-Way request came from Now SMS?||« Previous || Next »|
Post Number: 1
I have setup the software and the 2-Way option. I saw that someone could just enter my the URL with a message body and the script wouldn't know that this came from the browser and not NOWSMS.
How can I setup my php script to never be fooled by such a thing happening?
|Des - NowSMS Support
Post Number: 2833
You have complete control over the parameters included in the 2-way request, so you can include magic parameters that your PHP script requires.
Another approach would be to have your PHP script check the IP address of the requester to make sure it matches the address of the NowSMS server: $_SERVER['REMOTE_ADDR']
Post Number: 4
Thanks. The second option sounds like it will do the trick.