You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Difference between revisions of "Ban IP address in Phabricator"

From Wikitech-static
Jump to navigation Jump to search
imported>Wolfgang Kandek
(Created page with "One can ban an abusive IP address (an aggressive crawler for example) in Phabricator via an entry in /etc/apache2/phabbanlist.conf as shown by Tyler in Phabricator Task T26760...")
 
imported>Wolfgang Kandek
(Replaced content with "Outdated.")
Line 1: Line 1:
One can ban an abusive IP address (an aggressive crawler for example) in Phabricator via an entry in /etc/apache2/phabbanlist.conf as shown by Tyler in Phabricator Task T267603 - https://phabricator.wikimedia.org/T267603
Outdated.
 
Here is a working example:
 
<code>Require not expr "%{HTTP:X-Client-IP} == '185.23.213.54'"</code>
 
Other bans based on User-Agent or Referer should be possible as well.

Revision as of 16:12, 17 December 2020

Outdated.