You are here: Re: hacked referrer « PHP Programming Language « IT news, forums, messages
Re: hacked referrer

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация