Re: What is the best way to protect the PHP page that returns the AJAX data? [solved]
| From: | heavyccasey at gmail dot com | Date: | Sat, 12 May 2007 02:59:40 +0000 |
| Subject: | Re: What is the best way to protect the PHP page that returns the AJAX data? [solved] | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254837@lists.php.net to get a copy of this message | ||
Set ajaxObject.setRequestHeader("User-Agent","SecretName"); in
Javascript and check for it in PHP. Not fool-proof, but the average
person wouldn't be able to get in.
On 5/11/07, clive <clive@rttc.co.za> wrote:
Robert Cummings wrote: A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting to the list :B /me was thinking the same -- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission or reading of this email. However, many were excited and some may well have enjoyed the experience.} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php