You are here: Re: Faked $_SERVER variables « PHP Programming Language « IT news, forums, messages
Re: Faked $_SERVER variables

Posted by gosha bine on 06/01/07 14:54

On 01.06.2007 16:25 e_matthes@hotmail.com wrote:
> Hello,
>
> I keep reading that $_SERVER['HTTP_REFERER'] can easily be faked. Is
> that true of all server variables, or just some of them? In
> particular, I'm wondering if server_port can be faked.
>
> I'm interested right now because I want to detect whether the current
> page request is using http or https. I realize there are other ways
> to ensure the correct delivery of pages over https using directory
> management and htaccess, but I also want to understand the server
> variables better.
>

$_SERVER is mixture of system environment variables (e.g "PATH") and CGI
variables (e.g. "REQUEST_METHOD"), including extracted request headers
(all "HTTP_" ones). The latter group can be easily "faked", because it
contains data that comes from the client, not from your local machine.



--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok

 

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

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