ACDB  Log In
Search
Random
Light/Dark Theme
Site Map
SMASH or PASS

Welcome to Anime Characters Database

The visual search engine for animated characters. We index characters by eye color, hair color, hair length, age, gender, and animal ears.

Characters 104 this month
Titles 4 this month
Members 79 this month
Quotes
Voice Actors 4 this month

News | Aug 31, 2024 | ACDB, Bots, Performance

One down side of adding additional translations to the site is: web spiders, bots, and crawlers end up having index entire copies of the site. This has been pushing daily page requests near 3,000,000. while Google Analytics reported requests have remained around 100,000.

This works out to for every 1 request by a member, there are 30 requests by bots.

Our web server Nginx allows for rate limiting either at an IP level or a server level.

ACDB makes a lot of use of redirects so I can't really rate limit people to 1r/s without

1) Breaking the lounge
2) Making redirects take 2 seconds for the page to respond

I also can't give members more than 3r/s without risking race conditions.

This left me wanting a solution where I could have more generous rate limits for members and stricter rate limits for everyone else.

Unfortunately Nginx has some serious hatred problems for simple conditionals. They live under a mantra of "IfIsEvil".

Luckily, the world of programing is one where if you have a will, there is always a way.

Pushing aside useless AI summaries, I eventually landed on https://nginx.nginx.narkive.com/tRRv3Xv8/limit-req-inside-a-if-block-not-allowed

While this page's solution made use of a user agent check; that conditional could easily be replaced with a cookie test. A few tweaks later, the setup is live on ACDB. Members will enjoy a fast and responsive site as it should be while the bots will be limited to an amount of requests that shouldn't gum up the site again for a while.

--
Rei

Spy vs Spy

Arrested!
Engi Threepiece was Arrested! for arson by Anonymous

06:21 pm
Arrested!
Jin was Arrested! for arson by Anonymous

Yesterday 03:15 pm
Murdered!
Emu was Murdered! for indecent exposure by Anonymous

Yesterday 01:37 pm
Assassinated!
Amara was Assassinated! for homicide by Anonymous

Yesterday 01:35 pm
Murdered!
Eco was Murdered! for terrorism by Anonymous

Yesterday 01:33 pm

Happy Birthday To

Games

Kawaii or NOT and Smash or Pass are quite popular! Or test your knowledge witch Series Quizzes.

Family Tree

Latest Family Tree Relations

Shirou Ogami
SPRIGHTLYMAIDEN spent time with their Husbando

43 minute(s) 30 second(s) ago


Sirica
Carterice spent time with their Older Sister

1 hour(s) 47 second(s) ago


Hamegg
Carterice spent time with their Husbando

1 hour(s) 47 second(s) ago


Atlas
Carterice spent time with their Husbando

1 hour(s) 47 second(s) ago


Shadow Joker
Carterice spent time with their Onii

1 hour(s) 47 second(s) ago


Quick Links for members.

Logs

06:56 pm RinaK modified a title 06:49 pm SPRIGHTLYMAIDEN modified a character 06:45 pm gokuvaty123 added an extra detail 06:14 pm RinaK modified a character 06:13 pm RinaK new character Pina 06:13 pm RinaK uploaded a character 06:10 pm RinaK new character Ursula 06:10 pm RinaK uploaded a character 06:08 pm RinaK new character Yuuri 06:07 pm RinaK uploaded a character 05:59 pm RinaK new character Ein 05:59 pm RinaK uploaded a character 05:59 pm RinaK modified a title 05:53 pm RinaK new character Satoru Seto 05:53 pm RinaK uploaded a character 05:51 pm RinaK new character Tomoya Takamine 05:51 pm RinaK uploaded a character 05:50 pm RinaK new character Ayumi Endo 05:50 pm RinaK uploaded a character 05:49 pm RinaK new character Serina Kanno 05:49 pm RinaK uploaded a character 05:48 pm RinaK added an image 05:47 pm RinaK added an image 05:36 pm RinaK new character Rain 05:36 pm RinaK uploaded a character 05:35 pm RinaK new character Silk 05:35 pm RinaK uploaded a character 05:34 pm RinaK added new voice actor 05:33 pm RinaK new character Marina 05:33 pm RinaK uploaded a character

Go Top

Anime Characters Database Logo Links

Contribute

This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more [close]

Who Board | New Thread

05:26 pm
Anonymous
Who is this?

Latest Comments


Sekobicchi

waluigi - UlticraftMTT

Quotes

Thirty pages of English... - Tsukasa Hiiragi

As a result, I did better than usual. - Tsukasa Hiiragi

We have five days of vacation. - Tsukasa Hiiragi

Buy Me a Coffee at ko-fi.com

Increase your fun by becoming a member today! Login | Register

10 fun things to do on ACDB

Advertise - Share - Mascot - Contact - Discord - API - Wiki - Site Map - Change Log - Twitter - Instagram - Privacy Policy - Rules
All images are copyright of their respective owners. Copyright © Goral Software

Rendered in 98.5 ms. R-27-W-1-M-3177.74 KB