mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
4d0935ba5e
Summary: Fixes T3923. On `secure.phabricator.com`, we occasionally get slowed to a crawl when someone runs a security scanner against us, or 5 search bots decide to simultaneously index every line of every file in Diffusion. Every time a user makes a request, give their IP address some points. If they get too many points in 5 minutes, start blocking their requests automatically for a while. We give fewer points for logged in requests. We could futher refine this (more points for a 404, more points for a really slow page, etc.) but let's start simply. Also, provide a mechanism for configuring this, and configuring the LB environment stuff at the same time (this comes up rarely, but we don't have a good answer right now). Test Plan: Used `ab` and reloading over and over again to hit rate limits. Read documentation. Reviewers: btrahan Reviewed By: btrahan Subscribers: chad, epriestley Maniphest Tasks: T3923 Differential Revision: https://secure.phabricator.com/D8713
43 lines
574 B
Text
43 lines
574 B
Text
.DS_Store
|
|
._*
|
|
.#*
|
|
*#
|
|
*~
|
|
*.swp
|
|
|
|
# NetBeans project files
|
|
/nbproject/
|
|
|
|
# PhpStorm project files
|
|
.idea/
|
|
|
|
# Arcanist scratch directory
|
|
/.arc
|
|
|
|
# Diviner
|
|
/docs/
|
|
/.divinercache
|
|
|
|
# libphutil
|
|
/src/.phutil_module_cache
|
|
|
|
# Configuration
|
|
/conf/custom/*
|
|
/conf/local/local.json
|
|
/conf/local/ENVIRONMENT
|
|
/conf/local/VERSION
|
|
|
|
# Impact Font
|
|
/resources/font/impact.ttf
|
|
|
|
# User-accessible hook for adhoc debugging scripts
|
|
/support/debug.php
|
|
|
|
# User-accessible hook for adhoc startup code
|
|
/support/preamble.php
|
|
|
|
# Users can link binaries here
|
|
/support/bin/*
|
|
|
|
# User extensions
|
|
/src/extensions/*
|