zoobie
05-07-2007, 07:53 PM
I've a PHP script running on my site that sends me email. Problem is, someone is actually using this to send me spam. I've noticed all spam email ends with .edu or .gov which I tried to filter without success by using *.edu or *.gov
How do?
Thx
SoftWareRevue
05-07-2007, 08:34 PM
You can add some code to your script like if (preg_match(’ /[\r\n,;’”]/ ‘, $_POST[’email’])) {
exit(’Invalid email address’);
}
else {
//code to send the mail
}
zoobie
05-07-2007, 08:42 PM
oic...I modify the script and not cPanel.
Better get over to the coding forum.
Thx