FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
I'm Under Spam Attack! Help with PHP Form Urgently Needed!
Message  

Reply with quote
Post I'm Under Spam Attack! Help with PHP Form Urgently Needed! 
Hi
I have discovered that my situation is not unique;
What seems to be happening is:
A spamming/hacking tool of sorts is used to spider a site and automatically complete and submit a form - sending 10+ at a time!!.
The contents of the fields is a 3-7 length of random characters @yourdomain.com (where yourdomain.com refers to the vistims domain name).

To combat this I would like to validate that the Email field is not whatever@mydomain.com.

I am relativley new to php, having just discovered how to have a form be received in HTML format.  Rolling Eyes

I am thinking an if statement? I need to know how to determine if the field was "...@mydomain.com".
PLEASE HELP ASAP[/i]

View user's profile Send private message Visit poster's website

Reply with quote
Post  
Use strstr()

Code:

if(strstr( $_POST['email'], "@mydomain.com"))
{
 //True, spam attempt
}


View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com