Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help needed for email form

Featured Replies

Hi all,

 

Please excuse me if this has been covered already.

I need a script in order to stop spam coming through on my email form...View the form here very basic but its what I need but I keep getting lots of spam and porn links in which i dont want does anyone know the script to stop this????

  • Author
give your form some margin-left!

Will do when i get answered on my question...cheers anyway

Try making a hidden form that says "email" make the hidden form not go through, so if a robot sees the hidden form and fills it in, it won't go through...

 

Does that make sense? :)

  • Author
Try making a hidden form that says "email" make the hidden form not go through, so if a robot sees the hidden form and fills it in, it won't go through...

 

Does that make sense? :)

 

 

Yes kinda!!! PLease explain in more details and even show an example of what you mean if you don't mind

 

Thanks

I would either go with a captcha, those images whose skewed text you have to enter correctly, or the method mentioned above by Meshach which you can read up on here: http://www.modernblue.com/web-design-blog/...-spam-with-css/

This is a good idea - but poses an accessibility problem. Non/ custom CSS users will see the hidden field and fill it in...

 

Any other workarounds?

If you dont want to use a captcha you can try to include some random questions as a form of validation. Like 'Is fire hot or cold'? then the answer.

 

Meshach's solution is good as well but you need to combine that with either a captcha or the question thing.

 

Another thing you could do is to check the length of the input fields' datas. Like people don't usually have names of more than 40 characters whereas a spambot might put in more characters.

 

This is still not the end of the story...some spambots use mail injection. Similar to the Sql injection it uses special characters (like hex code) to enter spaces and/or carriage returns into the mail header. That's where regular expressions work really well.

 

So choose at least 2 verification methods and you'll be fine ;)

  • Author

I don't want to use captcha, I just want a piece of script that will validate an email etc so that I can cut down on spam and other unwanted emails.

I don't want to use captcha, I just want a piece of script that will validate an email etc so that I can cut down on spam and other unwanted emails.

 

well read my post above...validating the email address wont protect you from spam emails

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.