|
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]
|