Re: Using HTTP_REFERRER to ensure forms posted from server

From: Date: Thu, 29 Apr 2004 16:35:45 +0000
Subject: Re: Using HTTP_REFERRER to ensure forms posted from server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184964@lists.php.net to get a copy of this message
--- Terence <terence@sunway.edu.my> wrote: > To avoid malicious users creating their own forms and posting to my > site, is it advisable to use the $_SERVER['HTTP_REFERRER'] to ensure > that posted forms only come from the intended source? Anyone out there > using this? Hopefully not. :-) Referer is just as easy to spoof as the form data you're expecting. What you're wanting to do is prevent spoofed form submissions, and New York PHP has a nice resource that I encourage you to read: http://phundamentals.nyphp.org/PH_spoofed_submission.php Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/

« previous php.general (#184964) next »