Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8042453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:35:05+00:00 2026-06-05T04:35:05+00:00

Can anyone suggest the best ways to counter SPAM on forms – we’ve got

  • 0

Can anyone suggest the best ways to counter SPAM on forms – we’ve got a captcha in place but spam still seems to be getting in.

Is it possible to do the following…
On a form check if the POST request has come from the form submitted from that site (and not a form using the same action). If the request has come from the site accept otherwise don’t & simply ignore the request.

Also – is it possible to do something server-side to stop DDOS style attacks – as the spammer to our site seems to be sending thousands of requests in a very short space of time.

Can anyone suggest any other good anti-spam methods for Codeigniter (v2) that doesn’t hinder the user too much. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:35:06+00:00Added an answer on June 5, 2026 at 4:35 am

    Can anyone suggest the best ways to counter SPAM on forms – we’ve got a captcha in place but spam still seems to be getting in.

    I like the “honey pot” technique. Basically put a hidden field on your form, with an empty value. Validate the field as part of the form submission. If the field != empty – then it was a bot, so fail the submission. Bots tend to just fill in all the fields on a form automatically.

    Is it possible to do the following… On a form check if the POST request has come from the form submitted from that site (and not a form using the same action). If the request has come from the site accept otherwise don’t & simply ignore the request.

    Yes – its called CSRF – Codeigniter has it built in. Turn it on in your config file, and use form_open() on your forms. Thats it

    Also – is it possible to do something server-side to stop DDOS style attacks – as the spammer to our site seems to be sending thousands of requests in a very short space of time.

    Yes – put a “last submit” field in your session for each user. Or IP. Or however you want to track the spammer. On each form submission, check the last submit time, if it is less than X seconds (where X is whatever number you feel comfortable with – says 5 seconds) – then fail the form due to it being submitted too often.

    The other option is to record when the form was “served” to the user, and also fail if it is X seconds after request (i.e. takes a normal person 30seconds to fill in your form – so 2 seconds means a bot).

    p.s. using the above means you’ll be able to remove the Captcha 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone suggest the best place to add solution or project events, such as
Can anyone suggest some best options to include charting feature in my ASP.NET pages
Can anyone suggest the best way to display a Textblock (with a text such
Can anyone suggest the best way to offer a file for download within a
Can anyone suggest what software or tools that the best to design icon and
Can anyone suggest some fast ways to calculate the lowest common factor(excluding 1) of
Can anyone please suggest a best method in PHP to make a user logs-in
Can anyone suggest best method for what I want to accomplish? I have an
Hi Can anyone suggest the best video tutorials for learning expression blend? Thanks Judi
Can anyone suggest which monitoring tool is the best for monitoring JBOSS, in particular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.