Solved

How do I deal with my FormMail results being corrupted by scripts?

Posted on 2008-09-30
3
188 Views
Last Modified: 2012-05-05
I run a web site that provides information and answers questions vis a FormMail page. For the past week, all of my results are either invaded or corrupted. Instead of getting legitimate questions, I get variations of the following:

*****
Below is the result of your feedback form.  It was submitted by
Scot Mcclure () on Tuesday, September 30, 2008 at 08:26:55
---------------------------------------------------------------------------

Question(s): lcbpy7xhuls31p16
<a href= http://mocfcpf.com >eytygd xgsgjysg</a>
http://yziwwwjxhs.com 
<a href= http://sdturvqkup.com >ziqsj kjkuu</a>
http://bhszkogwf.com 
<a href= http://vtowpl.com >muubdr gvqxlow</a>
http://zbmtmd.com 
<a href= http://xkydvsz.com >iikenc zujyg</a>
http://mexdfky.com 


answer: by email ONLY

from: Craig Boyd

Submit: Submit Question

---------------------------------------------------------------------------
*****

Note that the "submitted by" and "from:" fields do not match - this is characteristic of all results. I have not clicked on any of the "links" and have simply deleted these messages, but they are becoming a problem and now am thinking this requires action. Please advise. Thank you.
0
Comment
Question by:webdrone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 22612305
I had the same but not since I use recaptcha

http://recaptcha.net/

See it in action: http://plungjan.name/askaquestion.php



0
 

Author Closing Comment

by:webdrone
ID: 31501548
Thank you. I was hoping for a little more elegant solution that I could maybe learn some scripting skills from, but this will work.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 22622100
You can try this (assuming the field should never hold an http):



<form action="goawayrobotsandpeoplenotusingjavascript.html">
<input type="text" name="questions" value="">
<script>
document.write('<input type="button" value="Submit" '+
'onClick="if (this.form.questions.value.indexOf('http')==-1) { this.form.action=\'formmail.php\'; this.form.submit()}">')
</script>
</form>

Open in new window

0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Encryption for Business Encryption (https://en.wikipedia.org/wiki/Encryption) ensures the safety of our data when sending emails. In most cases, to read an encrypted email you must enter a secret key that will enable you to decrypt the email. T…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question