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.

Contact forms and security

Featured Replies

Hi

 

I've built quite a large php form for a clients website.

 

Someone, somewhere, keeps filling the form in with rubbish and sending it. Consequently my client is receiving lots of mail from the form which is annoying and she's getting a bit peeved.

 

Is there a way in which you can capture the ip address or something of the sender so we can "have a word" (if you know what I mean).

 

Thanks,

 

Jo

have you set the form to validate when the user submits it? use a captcha or set up a question that only a human and not a bot would know

Is there any further field validation you can apply which may have an effect on reducing the spam? Failing that you could put a timer on the form if it is being repeatedly abused in quick succession. Or even a temporary IP redirect (or ban) for hammering the form.

You can try and use a hidden input field... a bot will fill even a hidden input field in, where as a human normally won't.

 

So if a hidden field is filled in, then you know not to let it pass through.

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.