This is a discussion on "PHP mail() and spam" within the PHP Forum section. This forum, and the thread "PHP mail() and spam are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
PHP mail() and spam
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
PHP mail() and spam
Apparently its really easy for spammers to hjack email forms using php mail() to use for spamming.
Can anyone give me a few tips on how to limit the possibility of this, thanks |
|
|
|
#2
|
|||
|
|||
|
Re: PHP mail() and spam
Dont use the get method to post ur form.
Register globals off. |
|
#3
|
|||
|
|||
|
Re: PHP mail() and spam
OK, when you say register global off - does that mean just setting globals to off in php.ini or do I need to do something in the code as well? thanks
|
|
#4
|
|||
|
|||
|
Re: PHP mail() and spam
in the php.ini
|
|
#5
|
|||
|
|||
|
Re: PHP mail() and spam
Hi, the settings were already set to off and send by post. But its still getting spammed. Is there anything else I could do (I read on a website that theres a 4th parameter in the mail function to stop people adding BCC, CCC etc, is this true?) Thanks for the help
|
|
#6
|
|||
|
|||
|
Re: PHP mail() and spam
Be sure to look at your mail form. To see how it could be exploited Last edited by sypher; Mar 24th, 2006 at 11:49. |
|
#7
|
|||
|
|||
|
Re: PHP mail() and spam
OK thanks sypher, im a little unsure how someone can exploit a form (I don't understand what they do, do they enter something into the fields to create those extra headers - would adding a maxlength limit the possiblities of this?)
Or should I add some validation to the subject field to only allow letters and numbers. Thanks |
|
#8
|
|||
|
|||
|
Re: PHP mail() and spam
Your best adding php validations, making sure there isnt any commas etc and things like that.
|
![]() |
| Tags |
| php, mail, spam |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Spam in your PM box | karinne | Webforumz Cafe | 0 | Jan 15th, 2008 18:09 |
| Spam in your PM box | karinne | Announcements and News | 0 | Jan 15th, 2008 18:09 |
| visitors name not displayed in mail after filling in mail form | made on earth | PHP Forum | 7 | Nov 16th, 2005 22:43 |