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

Ban IP address in Phabricator: Difference between revisions

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>Aklapper
(Aklapper moved page Ban IP address in Phabricator to Phabricator/Ban IP address: Creating more and more top pages without having any other pages linking to them is not helpful)
 
(3 intermediate revisions by 2 users not shown)
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
#REDIRECT [[Phabricator/Ban IP address]]
 
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.

Latest revision as of 11:23, 18 January 2022