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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:13:01+00:00 2026-06-17T22:13:01+00:00

I am looking for alternative security cautions for Apache web server. I generally work

  • 0

I am looking for alternative security cautions for Apache web server. I generally work with PHP and MySQL.

For processes like user login, I keep IP address, try count, and last try time in database, so if someone tries more than x times in last n minutes or seconds, I simply block IP address.

When there are a lot of different processes like user login, keeping IP addresses in database does not sound right (because of decreasing performance and a lot to do). I know if you want security, you need to sacrifice some performance but is there a better way to stop users making too many requests? Maybe a module to Apache? Or a lower level caution to server? I am especially trying to avoid unnecessary database work.

I considered using CAPTCHA but using it for every form kills user experience. And using it after x request in n minutes still requires first technique i mentioned.

A cache system might help but i can’t see how it prevents a brute force attack or filling up database with garbage. AFAIK it only helps to reading from database (please correct me if i am wrong).

  • 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-17T22:13:02+00:00Added an answer on June 17, 2026 at 10:13 pm

    Other than @ranty’s comment above (which is suitable unless you really have a lot of users at the same time), you could use a memory cache system such as memcached. It have a nice php interface and is very easy to use.

    Dump every login attempt to memcache (using ip address as key and trycount as value, cleared by timespan). It’s fast and should not cost too much in performance or development effort.

    Pseudo code for this would look like this:

    $memcache_obj = memcache_connect('memcache_host', 11211);
    $ip = $_SERVER('REMOTE_ADDR');
    $trycount = memcache_get($memcache_obj, $ip);
    if ( $trycount == null ) $trycount=0;
    if ( $trycount > 3 ) die('bad user');
    memcache_set($memcache_obj, $ip, $trycount++ , 0, 30);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for an ECMAScript alternative to work as a scripting language for
I am looking for alternative specification languages options for Java, like JML. Does any
I am looking for alternative SOAP ( javax.xml.soap ) implementation, other than Sun SAAJ
http://github.com/gabriel/yajl-objc I've already tried SBJSON, and while it works, I'm looking into alternative options
I am looking for an alternative to using an object/variable in global scope --
I am looking for an alternative to acts_as_solr or thinkingsphinx for fulltext search in
I am looking for an alternative to C-style union. boost::variant is one such option.
I have been looking for an alternative to Hibernate for various reasons. I came
Since VBScript doesn't support lookbehinds, I'm looking for an alternative solution. I have the
In a previous question , I was looking for an alternative to modifying how

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.