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

  • Home
  • SEARCH
  • 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 7875301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:57:36+00:00 2026-06-03T02:57:36+00:00

Please i need your help. I’m scripting a comment functionality on my website, and

  • 0

Please i need your help.
I’m scripting a comment functionality on my website, and i’m trying to reduce spamming to the barest minimum.. My issue/problem is that when users/bots(possibly) submit a comment, i have this code to do a HTTP/1.1 303 redirect to the same page so that when the user attempts to refresh the page the previous comment does not re-submit.

Will this be enough for spam reduction.

Thanks for your time, patience and answers. I most appreciate it.

          header("HTTP/1.1 303 See Other");
       header("Location: http://127.0.0.1/     main/forum/
  • 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-03T02:57:37+00:00Added an answer on June 3, 2026 at 2:57 am

    I don’t think would help you achive your goal which is reduce spamming you can do the following

    A. Check if a page as been refresh then redirect and this has been discussed extensively here : see

    PHP refresh

    B. To prevent proper flooding to need to limit number of request for sec for each IP address See

    Prevent PHP script from being flooded

    Edit 1

    Non OOP version as requested by you :

    $memcache = memcache_connect ( 'localhost', 11211 );
    $runtime = memcache_get ( $memcache, 'floodControl' );
    if ((time () - $runtime) < 2) {
        die ( "Die! Die! Die!" );
    } 
    else {
        echo "Welcome";
        memcache_set ( $memcache, "floodControl", time () );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please i need your help with my script. I'm trying to post comments to
Please I need your help with my script. I'm trying to insert values into
Please i need your help with my website (testing stage). I have a file
i need your help about this issue badly. i am trying to model a
please i need your help with an issue. I have two forms on my
Please i need your help with how to include INDEXES in my tables, i've
please i need you help with my script.. I'm trying to echo some content
I need some help! Please. I am trying to develop a very very simple
I need your help and please give me some advice. From programming pearls I
Please, I need your help. I have a Follow button. When the button is

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.