Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

prevent blank emails being sent from online form

i have setup form validation using jquery and it works and wont let someone submit the form without entering in some required fields. but we still get some emails that are totally blank. i also encrypted the form using web form spam protection cause we were getting spam emailed through the form, the encrytpion stopped the spam, but we started getting blanks a couple months ago. i setup robots.txt to disallow the html and asp pages also so crawlers arent supposed to be able to access the pages...what is happening? i dont understand why some blank emails are still being sent from the online form...thanks
0
CCLCLS
Asked:
CCLCLS
  • 4
  • 3
1 Solution
 
GaryCommented:
jQuery validation is no use if you are not also checking server side if the contact form is filled in.
It takes a few seconds to disable javascript in a browser and circumvent your checks similarly webbots do not execute javascript so they can submit a form no problem.
0
 
CCLCLSAuthor Commented:
so how do i do the server side check?
0
 
GaryCommented:
Check if the form fields are empty before processing. Same thing you do on the client side but you also do on the server side when the form is posted.

if request.form("email")="" then
' do nothing

etc
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
CCLCLSAuthor Commented:
ok i entered the code as you describe. i will ait to see if anymore blanks are sent. ususally a few every day.
0
 
CCLCLSAuthor Commented:
how come the disallow line in the robots.txt didnt work? some bots dont follow the rules?
0
 
GaryCommented:
Google et al will respect your robots, but for every good bot there are another 10 that are bad bots.
0
 
CCLCLSAuthor Commented:
easy quick solution, thank you, no more blank emails but regular emails still working fine...
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now