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 9126485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:03:17+00:00 2026-06-17T07:03:17+00:00

I am writing a phonegap application which I want to send ajax request and

  • 0

I am writing a phonegap application which I want to send ajax request and register users
with some parameters for ex: full name,email,password.

What would be the most secure way to build my PHP script to prevent other users from
flooding my DB with register requests?

  • 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-17T07:03:18+00:00Added an answer on June 17, 2026 at 7:03 am

    There are some standard methods:

    • Captcha
    • Add a hidden or invisible field to the form, and if any data is in it, disallow registration.
      Hidden will only catch stupid robots, as they can usually tell that that’s what it is, but invisible is trickier if you do it with CSS and/or Javascript. Variations on this theme are also good, such as having a field with a timestamp in it, then comparing it to now (and denying if it’s too old/from the future), or using magic values in some manner.
    • Send them an email, if it bounces, disallow registration.
    • Check the referral URL through $_SERVER['HTTP_REFERER']. If your registration page isn’t on your homepage, make it so they have to come from somewhere on your site.
    • Use non-dictionary words for element labels. Although this can make debugging more of a pain, it prevents bots from guessing the type of data that would be valid in the field.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application in PhoneGap that I want to run on iOS, Android,
I'm writing an application on Android using PhoneGap and i want map to be
I'm writing a complex phonegap application. In this application some html files are downloaded
I am writing application using PhoneGap on Android. I need to call some PhoneGap
I am writing a phonegap application which needs to download a file (pdf,doc,txt). I
I am writing a iphone application using phonegap and ios. I have a weird
I'm writing an Android application with Phonegap 1.4.1 and Sencha that downloads and reads
I am writing an application using phonegap for iOS. I am trying to show
So for the phonegap/cordova application the I am currently working on I am writing
I am writing an application for iPad using phonegap (Simple application using HTML5 and

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.