You are here: Re: PHP Passing Variables Between Pages and Security « PHP Programming Language « IT news, forums, messages
Re: PHP Passing Variables Between Pages and Security

Posted by Skeets on 02/11/06 01:37

probably the single worst case scenario is that a bunch of 13 year old
script kiddies laugh about you being pwn3d by them - and this can last
a while, too. -lol-

seriously, i think someone else answered your question, but i had to
get that in there, b/c it does happen.

can a script like this be modified to *know* that the form is being
sent from one's own site?

<?php
$host=apache_request_headers();
if(!eregi('domain.com',$host[Referer])){
//[...code to download file here...]
}else{
//[...code to download alternate file here...]
}
?>

it is a comment on php.net's manual $_server discussion.

iow, is...

$host=apache_request_headers();
if(!eregi('domain.com',$host[Referer])){

....spoofable or does it tell you where the page came from 100% of the
time?

 

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

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