GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How many members can htaccess authentication handle? (https://gfy.com/showthread.php?t=980851)

tunafox 08-03-2010 06:11 AM

How many members can htaccess authentication handle?
 
I'm using htacess to control membership access to my site.

Just wondering how many members I can have before there is a performance hit?

cardinalvices 08-03-2010 07:49 AM

think of it this way, how many lines can a file have to seriously effect the server performance? I guess a million or more, then it will take around 0.001 second for a server to look through the list.

woj 08-03-2010 07:54 AM

probably over 1000 or so :2 cents:

myneid 08-03-2010 08:00 AM

yea my best guess is about the same. I wouldnt use a .htaccess file for authentication for anything over 1000 members.
Not just because of the performance hit but the management of those members becomes a beast.

Babaganoosh 08-03-2010 08:27 AM

You can use .htaccess with MySQL rather than storing everything in a flat file.

RyuLion 08-03-2010 08:27 AM

Answer: Use .htaccess with MySQL database.

GrouchyAdmin 08-03-2010 08:37 AM

.htaccess is just a file the webserver is designed to parse.

If AuthConfig is set to All, or other settings, it merely contains directives on what to do for that subdirectory, and any subdirectories thereof.

Apache checking for .htaccess in every subdirectory of the root before finding this one will cause more inode lookups than most .htaccess flat file password combos could ever hope to, especally with FS caching these days.

Generally, you can handle a few thousand if you actually have to, but adding/removing will become a pain, esp if you're not properly locking the file. Using an SQL DB or a state driven key/value pair (memcache, redis) would behoove you for future growth.

I like pie.


All times are GMT -7. The time now is 08:04 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123