You are here: Securing against external URL in INCLUDE « PHP Language « IT news, forums, messages
Securing against external URL in INCLUDE

Posted by Guffi on 01/24/07 20:18

Hi

The PHP code is like this in the index-file:

include($id);

How can I secure it, so $id does not contaion an external link (which could
do some harm)
I have tried this: if (stristr($id, 'http') == TRUE) { exit("Hacking -
STOP!!"); }

But this test only work in my brower and does not stop from phishing :-(

Can someone please help me out here !!??

 

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

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