|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Guys and Girls
I need some help and have a few questions most of you will know the answers to but as I am not code minded I need the simplified versions please so nothing too technical. I am receiving some spam emails through some of my contact forms, I don't have a blog or comments page where you can add to, just contact forms for visitors to submit information for a quote and a form to submit to my directory. I suspect this is not being done manually but by a spambot as the information will not be added until I check it. My forms are all on html pages using cgi and formmail. Now for the questions, how to make them more secure? 1. Is there any way to stop http:// or www being entered into any of the fields, I don't really need this part as I can add it myself when adding the said website to my directory. 2. I want to add a field that will be hidden from visitors, so not filled in, but will presumably be filled in by the spambots and the form information not sent. I can add a field to my forms but can anyone tell me how to hide it and how to have it rejected? 3.I suspect that some bots don't even go near my forms but send straight to the server, changing the script name on the server used to keep them at bay for a few months but there is one which seems to get through right away. When you hover over the submit button you can see exactly what action my form is using and the name of the .pl script, can this be encoded or hidden? I have been everywhere on the internet to find solutions to all of these over the past two months to no avail. Any help appreciated Last edited by fpeter; 05-14-2008 at 04:17 AM. Reason: Parts looked confusing |
|
|||||
|
Quote:
Forget about image verification. It might slow down some form spammers but it is inefficient at best. Quote:
<?php $comment=""; extract($_POST, EXTR_IF_EXISTS); $string1 = strip_tags($comment); $string1 = strtok($string1, "/"); if($string1 == "http:") { // take evasive action } ?> Keep in mind this is just one of many techniques you could or would use. Quote:
If you want to block spambots you are better off skipping captcha and relying on a human inference script. For example: <?php session_start(); ?> Somewhere within your script you could populate a random question. Perhaps a random number between 1 - 1000. Then you could dynamically generate a question within your form asking for the number that immediately follows 763 (or whatever number was dynamically generated). You can do this with numbers, colors, sports questions or even ask for the thirteenth word in a specific paragraph. When the form is submitted you would test for the existence of this data and validate the answer. Quote:
There really is no need to hide the action="" within the script. Most (not all) of the secure forms I create use the same page to validate and process the form. If you are using PHP or .ASP or some other SSI you can hide all the validation and processing scripts within the same or another page. The process will remain invisible. Quote:
__________________
I use Country IP Blocks as added security for my networks and servers. Last edited by Tech Manager; 05-14-2008 at 07:54 PM. |
|
|||
|
Quote:
I completely agree, seems like I posted this same thing before. LOL, which I actually stole the idea from someone else.... I'm not sure if it matters, but I would maybe change the name of the field to something more common that way it increases the chances of the bot filling in the field. Something like myemail or myphone would work, but isn't required. |
|
|||
|
Quote:
|
|
|||
|
Wouldn't adding a name to the field cause a problem for anyone using autofill? The browser would automatically fill the field, and the user wouldn't even realise as it is hidden. You would then be losing valid enquiries; far worse than being spammed.
|
|
|||
|
Thank you everyone for your ideas and replying to my questions, most helpful.
I prefer not to go for a captcha or the sum due to the accesabilty issues and the fact that it adds something extra to the form to be filled in. Since posting I have managed to figure out how to add a hidden field to my form using a div: <div style="display: none;"> <input type="text" name="url1" id="url1"> </div> I have called it URL1 as I think the bots would like this and fill it in. I use CGI Formmail 3.14c1 to validate and send the form but I am stumped as to the part to add to tell the form not to send if this field has anything in it. If anyone knows what and where to add it would be very much appreciated? |
|
||||
|
If you are referring to formmail by Matt Wright please consider removing the forms. These programs have been around for over 10 years! They've been hacked more than IIS 3 server. The hacks are documented and often used because many older ISPs and hosts support these scripts as free cgi programming. The spambots should be easily thwarted because as I recall there is a function that checks the domain the form was sent from and if it isn't in the list you give it the program will not submit the form and give a "Denied" message. There is a group of programmers who have written replacements for Matt's programs. These require the same skills and are better maintained and have improved security. Do a search on formmail hacks it should be rather enlightening!
__________________
Follow me on Twitter! On the Trail with SOSG How I became a Social Media Convert and Twitter and Agents of Influence and now regular poster at Cloudmixer where We're Mixing New Media Ideas. |
|
|||
|
Quote:
In response to: Quote:
if(isset($_POST['url1']) { // Tell the script what to do if the variable has been filled in. You can exit, break, redirect, etc. } else { // Continue to validate and process the data }
__________________
I use Country IP Blocks as added security for my networks and servers. Last edited by Tech Manager; 05-15-2008 at 12:14 PM. Reason: to improve readability |
|
|||
|
Is Matts Script less secure than NMS Formmail and is there a more secure method to send form data that I could be using?
As for some of the suggestions above, most are beyond my capabilities at the moment as I'm pretty new at this but I don't want to have to learn how to code just to have a contact form, just want a simple solution if one exists. If I have a problem this is where I come for the answer, All your help is very much appreciated. |
|
||||
|
Quote:
__________________
Follow me on Twitter! On the Trail with SOSG How I became a Social Media Convert and Twitter and Agents of Influence and now regular poster at Cloudmixer where We're Mixing New Media Ideas. |
|
|||
|
Hi Terry Van Horne
I also replaced Matt's script with NMS Formail a few years ago and everything was fine, I only receive about twenty spam emails per day, so not a lot, they seem to come from the same source as they all contain the same info. Should I continue to try and make my forms more secure or should I try creating a form using some other method? What would you recommend? Thanks in advance |
|
|||
|
My website uses MyContactStation which asks humans to answer a simple math question that spambots can't answer
You can see how it works here...the contact link is at the bottom QH4.com
__________________
You'll love this free traffic site...now it's getting me 2,000 targeted hits every day. http://www.traffficswarm.com/wpw.html |
|
|||
|
How about adding a hidden field that autofills with the browser's session id? Then you don't process the form if the value doesn't match the actual session id. Of course this would only work for spammers that don't visit with a browser.
|
|
||||
|
Why bother checking the session id? Seems like more work than is necessary.
An empty hidden form field doesn't care what method the bot simulates, if there's data entered in the field, it's invalid. Simple and easy to implement. |
|
|||
|
Thanks everyone for some good ideas, especially to you, Dubbya.
Maybe someone can help me and my programmer with my particular situation. Spam bots are using my ordering form, contact us form, and "send to a friend" form to send me their mail. But here's the thing...if a human is filling out, say, the ordering form, they have to fill out all the boxes, or it can't be sent. But, the bots can do this. My programmer explained how they can do this, but I'm too dumb in this are to understand. heh. But at this point in time, he is still trying to figure out how to stop them. He's not ready to wave the white flag yet, and neither am I. Your idea sounds like a good one, but if the bots can send e-mail without having to fill out the forms, period, how can we stop the bastards??? Anyone? Thanks! Perry Last edited by perry321; 05-30-2008 at 02:42 AM. |
|
||||
|
Hey everyone.
I'd like to know, how to make sure my emails are put NOT into SPAM folders of mail clients? Here is the list of my email addresses: pussycat-123@live.com pusy@ymail.com john.rutger@gmail.com dick.*****@rocketmail.com john.dicky@hotmail.com porno145@gmail.com aaabbbb@rocketmail.com Please don't ask me why these addresses are "spam-like"... I have a specific job |
|
|||
|
Quote:
But, as an aside, if you want to keep them out of people's spam folders/blacklists you start by not using them to send spam.
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
||||
|
Quote:
__________________
The Penn State Ticket Man http://www.pennstateticketman.com http://www.happyvalleytickets.com http://www.hounddogtours.com |
|
||||
|
VOVAN, if you don't want your email addresses to be harvested by spambots, the first thing you should do is STOP POSTING THEM ON THE INTERNET! (Be it here or in Russian forums)
In doing so, you've pretty much ensured that they'll end up receiving lots and lots of wonderful spam that will require hours of your time to filter out. |
|
||||
|
I classic way to help, nothings perfect, is to use Captchas. These display text, or image which a real user has to enter to complete the form.
|
|
||||
|
Users loath CAPTCHA as implemented via images.
Better to use Question/Answer challenges.
__________________
The Penn State Ticket Man http://www.pennstateticketman.com http://www.happyvalleytickets.com http://www.hounddogtours.com |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP spam resistant form help! | optimalwebsite | Web Programming Discussion Forum | 2 | 10-01-2007 01:50 PM |
| Spam from form email | rkstevens | Internet Security Discussion Forum | 6 | 05-16-2007 05:16 PM |
| Form and Forum SPAM and how to curb it | MtraX | Internet Security Discussion Forum | 0 | 11-03-2006 02:52 AM |
| 2 x Form Validations' Needed, | nwisp | Services for Sale/Hire | 0 | 09-18-2005 11:59 AM |
| What to do about another form of spam I found | bvi | Google Discussion Forum | 1 | 01-26-2004 03:29 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |