kvarnerexpress
Aug 7 2005, 09:56 PM
| | i have a web form on my site which can be filled in with a customers email, name and question or comment. when the form is submitted an email is sent to an address i setup with all the info.
recently i've been getting alot of spam/junk coming from the web form. for the most part, they usually come pretty close together, which makes it seem like just one spammer (at least at a time). also i'm talking like 5-10 messages at a time.
i'm wondering if people have any suggestions how to protect these types of web forms from spammers.
any ideas/help is appreciated kvarnerexpress |
Reply
Tyssen
Aug 7 2005, 10:50 PM
I was getting a similar thing from one of my forms. All the spam was coming from online gaming sites and they kept copying their keywords into all the fields. So I set up a filter on the commonly used spam words and now I don't get it any more. (This was done in ASP, but the method will be the same for PHP.) CODE 'checks for spam Dim spam, spamArray spam = false spamArray = Array("poker", "viagra", "texas", "xanax", "holdem") for i=0 to 4 if (InStr(Request.Form("message"),spamArray(i)) > 0 ) then spam = true end if next You put the words you want to filter out into the array, then loop through the relevant field (in my case, the message field) a few times to see if any of those words are present. If they are, spam = true and the email doesn't get sent.
Reply
beeseven
Aug 9 2005, 03:27 PM
Here's a PHP version of the above script: CODE $spam = false; spamArray = array("poker", "viagra", "texas", "xanax", "holdem"); for($x = 0; $x < count($spamArray); $x++) { if (substr_count($_POST['message'],spamArray[$x]) > 0 ) { $spam = true; } } if(!$spam) mail(...
Reply
squeezer
Aug 9 2005, 04:04 PM
[quote=beeseven,Aug 9 2005, 03:27 PM] i've the same problem!
Reply
Similar Topics
Keywords : protecting web email forms- An Interesting Approach To Email Verification...
- (6)
- Restrictions On Php & Forms?
- $_GET/POST/REQUEST? (2)
alright, so heres me again (theres probably a contact page on the website but I figure somebody
has/will have this question and they'll want to know it so why not ask and share the love &
knowladge (minus the love)) so I've been working on a two part contact page. contact.php
CODE <p><img src="images/sig.gif" align="left" width="37"
height="69" style="margin-right: 5px;" alt="B/S Signature"/>
<font class="head">Contact!</font><br/> <form action=...
Php & Forms Question
- (2)
okay, so i have a form on a php script i am working on, and i want the form to submit to the page it
is on... CODE echo "<form action=\"" .
$_SERVER['REQUEST_URI'] . "\"
method=\"GET\"> \n"; so say the page it loads on is something like
index.php?page=article&id=8 when i submit the form, it ignores the query string and just goes back
to index.php i tried something like CODE $action =
$_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_S...
Php Email Validation
- A PHP data validation class with many functions (1)
I've been reading through my old php book (PHP 4.1) and came across this data validation class.
It can check a number of things ranging from telephone numbers , credit card number formats, email
address and some others. I checked out some of the methods although I didnt expect it to work 100%
because I've found source code errors thoughout the book and CD. I tested out a few of the
methods to check and some of them did return expected results but some didnt either so the data
validation class was not perfect and it didnt really bother me. The cool thing I found...
Encode Your Email Address
- Confuse the Spam Bots, but not your viewing clients (5)
Spam bots often 'scrape' pages to glean information and collect email addresses. I don't
like that. To combat the Bots from collecting my address off of my site, I wrote a script that
includes 'obscures' the address in several ways. It adds 'AT' where the '@'
sign is and then replaces the '.' with 'DOT' so it is humanly readable, but not by
the Bots. Also, it encodes the 'mailto' and the address used in the 'mailto' so it
shows okay on the web page and on:hover, but it is actually encode into hex value...
Trouble With Phpbb Email
- (1)
Hi guys, I want to know if there is anything you can do for sending confirmation email to your
users automatically when they have just regeistered, when the host server does not support SMTP
(Simple Mail Transfer Protocol). ? Thanks alot....
[php]simple Flat File Text Manipulator
- Example on how to use forms to write to files in PHP (3)
I made a simple flat file text editor, that can show you probably how simple it is to use forms with
php and write that data to file. This example has 2 files, submit.php, and postit.html. Submit.php
is used to write title, and some text, and add html tags, and paragraph tags where new paragraphs
are. Here's the file with comments. I think that HTML really doesn't need some more
explaining. CODE Title: <br /> <input type="text"
name="title" size="53"> <br /> Text: <br />
<textarea nam...
Forms, Text Files, And Php For A Signature Generator.
- Help a little. (1)
Hello everyone! I am in need of some code a for a signature generator I am making. I am using
BuffaloHELP's code for the php file, now I am trying to improve that code by making a form in a
html file that will have the user say what is on the sig! But now, I need help getting the form
data that is posted by the user to get into that sig! There is a file, sig.txt, where that tells
the php file what text will go on the sig. But how can I make the form data in the html file go into
the text file so it will go onto the sig? You might want to read BuffaloHELP&...
Email Sending.
- email sending with php. (1)
this script allow user to send an email for you. i hope you enjoy /wink.gif"
style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> CODE
[color="#0000ff"][indent]<? $top='<html
dir="rtl"> <head> <meta http-equiv="Content-Language"
content="fa"> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8"> </head> <body> <div
align="center"> <p style="margin-top&...
Protecting My Code
- from people that crack software (5)
Is there any one way that I can protect something that I have written? 2 weeks ago I was contracted
to write a script for a friend in California for $300. I have known him for a while, and I
know he will respect my work, but if I sell this to other people how can I make sure they do the
same? I would like to sell this script to others. I have thought of a couple possible ways to
protect my code but I don't really like any of them. My question to you is whether I should use
one of these ideas, or if there is a simpler way to protect my work. My first idea w...
Add Users On Email Program With Php?
- (1)
First of all Marry Christmas, Well so i am in some kind of a problem, i can't find out how to
add users to my mail service, i have no idea what SMTP/IMAP program the server runs, neither does
the system administrator. But it should be kinda the same thing for all of them if i am not wrong,
Anyways i have full access to server so i can do whatever i want to do, i have SSH access too (Root
access /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0"
alt="rolleyes.gif" /> )...
Email Header Inject Test
- (0)
So I'm trying to write a script to check if someone is trying to do a header inject using my web
based email form. The problem is that, regardless of the content, it is being tagged as hijacked.
The following is the relevant part of my code: CODE $ip=$_POST['ip'];
$httpref=$_POST['httpref'];
$httpagent=$_POST['httpagent'];
$visitor=$_POST['visitor'];
$visitormail=$_POST['visitormail']; $s...
Wappymail_v1.50
- wap free mail/ email admin script :-) (15)
Here is my new wap mail script. You can use it as a free email sending service or an email admin
form (can set this option in config.php) its extremly simple to install and you will find full
instructions in the zip file. Please feel free to comment, rate, or update this script :-)
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> ...
Email Form
- Very Simple (12)
This is another little script that I devised. It's very simple. As the name suggests, it's
a script that lets the user send an email via a form. CODE SENDMAIL.PHP echo "<form
action='form-send.php' method='get'>"; echo "To: <input
type='text' name='email' size=20>"; echo "Subject: <input
type='text' name='title' size=20>"; echo "Message: <textarea
cols=50 rows=25 name='message'></textarea>"; echo "<input typ...
Yet Another Problem With A Form Script
- Maybe I should just use email? lol (6)
Okay, here is what I got. I know, three topics on form scripts, but hey, I am learning. I used a
generator, and then put it on, but it is giving me a santax (is that how you spell it) on line 13
with an unexpected = sign. I recited taht the best I could. Anyway, so I need some help. The form
is located in http://inneed.mxweb.co.uk/askandanswer.html The script behind the whole works, I
named, aaform.php. Moving right along here, I got this error, so here is the code that I called
aaform.php, you know the one that works the whole thing: CODE <?php // Webs...
Email Server Help Please
- I need noob detailed help on setting up a email server on windows XP (0)
Hello I would like to say thank you for any help you might give me. I'm new to Apache / PHP and
MySQL I have all them up and running propertly I think. I want to make a PHP online game and I need
to set up an email server so I can have and authincation system. When the player creates an account
I want the computer to email the player a link the have to click on to make there account active.
I have a Comcast 8mbits broadband connection My server is running at http://192.168.1.105 My
PHPinfo file is http://192.168.1.105/phpinfo.php My FormMail File http://192...
Sending Attachments Using Email Function In Php
- (2)
I'm trying to send an attachment using the mail Php function. It gets caught by the email
server with an error. It seems to have a problem with the separator or who knows what. The server
says something like "invalid separator on mime type." The code is: Code: CODE // subject
$subject = "Hello There "; $mime_boundary =
"<<<--==-->>>"; // headers $headers =
"From: " . 'Tom' . " <" . 'texample@aol.com' .
">\r\n"; ...
Form To Pdf, With Email?
- Wanting to Submitt Data to PDF (3)
Hi all, This sounds like a good place to ask this, I have a form Click Here to View that when
submitted will put the values into the PDF Here Is there a way in which to have the filled in
form both viewed to the user? and also have it emailed to me as an attachment. Any code or help
would be good... I get basics, but this stuff is hard to get to work and i can't get it to....
Trouble With Emailer.php
- failed sending email error (5)
Whenever someone registers at my forum, they get this error: Failed sending email :: PHP :: DEBUG
MODE Line : 234 File : emailer.php however, the account will be sucessfully registered. It is
weird because i did not change the original emailer.php at all. O__O||| anyone know whats up with
it?...
Email Code
- (3)
CODE if($submit) //If submit is pressed { mail("youremailaddress@whatever.com",
"$subject", "$email", "$comments"); } else {?> '> E-Mail: Subject:
Comments: ...
How Do You Validate Your Forms?
- (3)
Hi Do you validate your forms using PHP , javascript or both? I was just playing around with a
tutorial for a very simple guestbook and the creator did use both javascript and php to validate.
Thanks Patrick...
Php Contact Form
- contact forms made easy... (7)
Here is a simple script to make a contact form with PHP. First off you make a simple contact form,
insert the following into any page: CODE <form method="post"
action="form.php"> Name:<input name="name" type="text"
id="name"><br> Email:<input name="email" type="text"
id="email"><br> Subject:<input name="subject"
type="text" id="subject"><br> Message:<textarea
name="comments" id="textarea"&...
Looking for protecting, web, email, forms
|
|
Searching Video's for protecting, web, email, forms
|
advertisement
|
|