You are here: Re: query string passing woes........ help... please.... « All PHP « IT news, forums, messages
Re: query string passing woes........ help... please....

Posted by Steve on 03/01/07 00:13

"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:lo4cu21vul2r4dlk65vanvp1qhu35quvmg@4ax.com...
| Message-ID: <1172697912.534051.87520@q2g2000cwa.googlegroups.com> from
| rcoan@chaparralboats.com contained the following:
|
| >Ok, now on to security measures.... Could someone explain to me what
| >this code does, how it secures the emails and where in my code I
| >should implement it?
| >
| >$emailInput = array($to, $from, $cc, $bcc, $subject, $message);
| >$injections = array('to', 'from', 'cc', 'bcc');
| >foreach ($emailInput as $input)
| >{
| > foreach ($injections as $injection)
| > {
| > $input = preg_replace("/n?" . $injection . "\s*?:.*?\n/i", '',
| >$input);
| > }
| >
| >}
|
| What it does is it fixes spamming attempts. Which is rather stupid
| since you don't really need mail from people who are attempting to hack
| your system.
|
| Rather than fix them, better to simply drop them silently.

GEOFF !!! don't be stupid...it is easier to detect if he keeps trying to
hack...and easier for me to track and prosecute legally. don't be a ...
well, i'll leave you alone. usually you're more imaginative.

 

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

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