Name

RobotLimit — specify maximum number of pages a user can visit without a short pause

SYNOPSIS

count

DESCRIPTION

Specify maximum number of consecutive pages a user may access without a short pause.

When the RobotLimit is exceeded, the command defined in LockoutCommand will be executed and the catalog URLs will be rewritten to 127.0.0.1, effectively pointing the robot back to itself.

The short pause amounts to 30 seconds and can be configured using the Limit directive's lockout_reset_seconds setting.

If a remote client gets assigned a new session with every visit, rather than maintaining a single session, then this directive sets the limit for the number of sessions that may be assigned to the individual IP address over a one hour period. The one hour period can be overridden using the Limit directive's ip_session_expire setting. If a lockout is triggered it will remain in effect for 1 day. The one day period can be overridden with the Limit directive's robot_expire setting.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Setting RobotLimit

RobotLimit 200

NOTES

Set the directive to a number greater than the number of pages users are ever expected to visit in a short time frame.

AVAILABILITY

RobotLimit is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 688

['RobotLimit',     'integer',          0],

Source: lib/Vend/Config.pm
Line 3973 (context shows lines 3973-3980)

sub parse_integer {
my($var, $value) = @_;
$value = hex($value) if $value =~ /^0x[\dA-Fa-f]+$/;
$value = oct($value) if $value =~ /^0[0-7]+$/;
config_error("The $var directive (now set to '$value') must be an integer\n")
  unless $value =~ /^\d+$/;
$value;
}

AUTHORS

Interchange Development Group

SEE ALSO

OrderLineLimit(7ic), LockoutCommand(7ic), Limit(7ic)

DocBook! Interchange!