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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:45:50+00:00 2026-06-10T08:45:50+00:00

i am trying to build something which i don’t know is possible, so i

  • 0

i am trying to build something which i don’t know is possible, so i need some guidance. Basically my requirements are as following

1- Whenever user tries to authenticate using HTTP auth on nginx, i want to track if the authentication failed (so it can be some code that runs after an authentication failure), to track (lets say in a hashmap) the username

2- When the user tries to login x amount of times , within x period, i want to be able to “disable”. For disabling them i want to lets say mark them in a database as disabled so they can’t login anymore.

So the code will

1- Before the auth attempt checks the DB table if the account is disabled and if it is rejects it

2- After the Authentication attempt if the auth is unsuccessful , it will put them in a hash table to track how many times it fails, and if a certain thrash hold is met, will call a function to diable the account in the DB table.

Is all of the above possible using the nginx modules like lua or perl etc, if yes can someone explain to me how do i go about doing it? Any pointers will help

  • 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-10T08:45:52+00:00Added an answer on June 10, 2026 at 8:45 am

    Trivial solution is to use nginx’s auth request module, which will allow you to offload authentication checks to a backend and do your own authentication checks in your favorite language. See README for details.

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

Sidebar

Related Questions

So yeah, I'm trying to build something like Do I need an Umbrella, but
I'm trying to build something akin to Facebook's Share functionality for my website. I've
I'm trying to build something on javascript that I can have an input that
I'm trying to build something similar to Facebook's privacy selection menu, except without the
I am trying to build something portlet server-ish on the google app engine. (as
I am trying to build something like an email client. In the list of
Hey guys, I've been trying to build something simple in Flash 8, and I
I've been whacking on this regex for a while, trying to build something that
I'm trying to build a view that operators something similar to this: The user
I am trying to build a Retirement Calculator as a chance to make something

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.