/ Published in: PHP
URL: http://www.namepros.com/2996502-post8.html
[quote]$SERVER['HTTPREFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
Expand |
Embed | Plain Text
if ($_SERVER['REQUEST_METHOD'] == 'POST') // or possibly, count($_POST) > 0 { if ($host AND $_SERVER['HTTP_REFERER']) { $refhost = $refparts['host'] . ((int)$refparts['port'] ? ':' . (int)$refparts['port'] : ''); { } } }
Comments
Subscribe to comments
You need to login to post a comment.

or you could also implement a captcha or my personal favorite re-captcha
http_referer can be spoofed too