.htaccess Limits - What's your largest?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Babaganoosh
    ♥♥♥ Likes Hugs ♥♥♥
    • Nov 2001
    • 15841

    #1

    .htaccess Limits - What's your largest?

    I am putting the finishing touches on a new "join for free" type script. The first version of it will use .htaccess for password protection. How many users can .htaccess handle? After all, it is only a flat text file. I can cook up a mod_auth_mysql version easy enough so apache can authenticate users from a MySQL database, but for most people, that apache mod wouldn't be practical. Anyway, my largest .htpasswd file is about 6000 users long and it seems to work okay. Anyone have any experience with a larger password file?
    I like pie.
  • AdultWire
    Confirmed User
    • Feb 2002
    • 962

    #2
    I don't actually know the answer to this (which is why I never use htaccess authentication), *BUT*, the magic number for most old-school unix flat files is in and around 65535. Performance may degrade before that, however.
    SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

    Comment

    • Babaganoosh
      ♥♥♥ Likes Hugs ♥♥♥
      • Nov 2001
      • 15841

      #3
      65535 lines?
      I like pie.

      Comment

      • chodadog
        Confirmed User
        • Apr 2002
        • 9736

        #4
        I think it's 65535 kilobytes.. or bytes.. one of the two.
        26 + 6 = 1

        Comment

        • JFPdude
          Confirmed User
          • Jan 2002
          • 4027

          #5
          65535 kb file size is the limit

          Comment

          • NetRodent
            Confirmed User
            • Jan 2002
            • 3985

            #6
            Size isn't the only concern, you also need to consider how often that file will be accessed. If you're reading it 100 times / second, you're going to have trouble long before you would if you were only reading it 1 time / minute.
            "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
            --H.L. Mencken

            Comment

            Working...