Name

http_acl_set — Set conditions against web server ACL's

Synopsis

integer http_acl_set ( in list_name varchar ,
in order integer ,
in client_ip varchar ,
in flag integer ,
in destination_ip_or_host varchar ,
in object_id integer ,
in read_write_flag integer ,
in rate integer );

Description

This function can be used within application logic to set ACLs rule.

Parameters

list_name

a string designating which list to be used for matching

order

a string designating order

client_ip

a string containing the IP number of client to set rules

flag

0 - allow, 1 - deny

destination_ip_or_host

a string containing the IP number of destination requested by client

object_id

is a integer designating a object to match

read_write_flag

an integer designating action to match: 0 - read, 1 - write

rate

When set, the filter will calculate hit rate average and will compare with limit for http acl rule. If it is larger then will drop connection. Once per day the statistics will be reset.

Return Types

The function returns the value of the HA_FLAG of the first matching rule. If no rule matches it returns -1.