add use_antispam_mechanism_for_not_logged_users config option
This commit is contained in:
@@ -341,6 +341,7 @@ void Config::AssignValues()
|
||||
check_proxy_ip_header = Bool(L"check_proxy_ip_header", false);
|
||||
proxy_ip_header = Text(L"proxy_ip_header", L"X_Real_IP");
|
||||
|
||||
use_antispam_mechanism_for_not_logged_users = Bool(L"use_antispam_mechanism_for_not_logged_users", true);
|
||||
antispam_list_max_size = Size(L"antispam_list_max_size", 10);
|
||||
add_header_cache_no_store_in_htmx_request = Bool(L"add_header_cache_no_store_in_htmx_request", true);
|
||||
}
|
||||
|
||||
@@ -934,7 +934,12 @@ public:
|
||||
// default: X_Real_IP
|
||||
std::wstring proxy_ip_header;
|
||||
|
||||
// antispam mechanizm
|
||||
// use an antismap mechanism for not logged users
|
||||
// when they try to add a new item
|
||||
// default: true
|
||||
bool use_antispam_mechanism_for_not_logged_users;
|
||||
|
||||
// antispam mechanism
|
||||
// size of an list for map: form_id to counter_id for anonymous users (each session has such an map)
|
||||
// this value allowes you to open the same or different html form in the browser more than once
|
||||
// and each form has its own form_id and counter_id
|
||||
|
||||
Reference in New Issue
Block a user