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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:51:56+00:00 2026-06-03T14:51:56+00:00

We have functionality on our registration form that uses an AJAX call to check

  • 0

We have functionality on our registration form that uses an AJAX call to check whether a username is available.

It’s quite straight forward

  • Make a call to our service
  • Check username against database
  • If record of username found, return taken, otherwise return available.

We execute the call to our service once a user stops typing for a couple of seconds.

Our problem however, is that an attacker could use some means of brute force on our service and compile a list of all our usernames.

Does anyone know of any good ways to help prevent this sort of “attack”?

The only one I could think of was asking for a Captcha up front, but that wouldn’t be a good user experience and might put people off filling out our form.

If it helps at all, we’re using ASP.NET MVC, C#, SQL Server.

Any help would be greatly appreciated, thanks!

  • 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-03T14:51:58+00:00Added an answer on June 3, 2026 at 2:51 pm

    I suppose the best way is to rate limit it, either by allowing a user only a certain number of requests or by adding a 0.5-1 second waiting time onto each request. By doing either of those it’ll become much harder for an attacker to enumerate a decent number of usernames in a reasonable amount of time.

    I think a better way of securing your application however would be to treat it as if everyone already has a list of your users and work from there. Assuming an attacker knows all your users, how would you protect against brute force attacks? By rate limiting password attempts. By allowing only a few password attempts per 10 minutes or so, you will secure your application’s users substantially.

    Personally I believe that all passwords that are non-obvious (such as “password” and “qwerty”) ought to be secure – for example, “soccerfan” should be a secure password. Why? Because you aren’t going to guess “soccerfan” immediately. It’ll maybe be 100th or so in your brute-forcer’s dictionary and by the time they’ve guessed attempted to login with anywhere near that amount they should be banned and the user should have been notified. (By the way, I’m not suggesting people should use such passwords, the more complex the better).

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

Sidebar

Related Questions

I want to have functionality on my application that lets a user check off
We're using Mono.Cecil in our project. Does it have any functionality that allows me
I have some functionality that I need in all my classes which derive from
I have common functionality that I need to access from all screens of my
I have some functionality that needs to be async in my C# app. It's
I currently have pagination functionality that displays the total page count, but I was
I have been told to create forum functionality in our website..I have done it
In our web application, we have print functionality for a couple of our pages
I have a problem that I implemented a functionality in which we draw bitmaps
We have some search functionality that can return tens of thousands of results from

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.