|
Posted by Jonathan N. Little on 02/14/07 04:05
Rik wrote:
<snip>
> Simple example using PHP:
> <?php
> $link = fsockopen('http://example.com',80);
> fwrite($link,"GET / HTTP/1.1\r\nReferer: http://forum.example.com");
> ?>
>
> This is the main reason why anyone with basic knowledge will tell you
> never to trust a referer header for any security whatsoever.
Thank for the info, yes I do not trust a referrer for any security,
can't ever use it reliably for mundane purposes as many personal
firewall block it. I was familiar with setting some of the header info
with the header() function but haven't had any experience with sockets .
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|