*/
$wgRateLimitsExcludedGroups = array();
+/**
+ * Array of IPs which should never trigger the rate limiter.
+ * Really this is a cruddy hack and should be replaced with
+ * an "anti-block" or something which can be managed through
+ * the wiki UI.
+ *
+ * $wgRateLimitsExcludedIPs = array( '1.2.3.4' );
+ */
+$wgRateLimitsExcludedIPs = array();
+
/**
* On Special:Unusedimages, consider images "used", if they are put
* into a category. Default (false) is not to count those as used.
*/
public function isPingLimitable() {
global $wgRateLimitsExcludedGroups;
+ global $wgRateLimitsExcludedIPs;
if( array_intersect( $this->getEffectiveGroups(), $wgRateLimitsExcludedGroups ) ) {
// Deprecated, but kept for backwards-compatibility config
return false;
}
+ if( in_array( wfGetIP(), $wgRateLimitsExcludedIPs ) ) {
+ // No other good way currently to disable rate limits
+ // for specific IPs. :P
+ // But this is a crappy hack and should die.
+ return false;
+ }
return !$this->isAllowed('noratelimit');
}