FreeBSD Bugzilla – Attachment 158387 Details for
Bug 201306
patch for www/mod_evasive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
diff_mod_evasive.c
diff_mod_evasive.c (text/x-csrc), 1.95 KB, created by
Walter Schwarzenfeld
on 2015-07-05 17:33:55 UTC
(
hide
)
Description:
diff_mod_evasive.c
Filename:
MIME Type:
Creator:
Walter Schwarzenfeld
Created:
2015-07-05 17:33:55 UTC
Size:
1.95 KB
patch
obsolete
>142c142 >< if (is_whitelisted(r->connection->remote_ip)) >--- >> if (is_whitelisted(r->connection->client_ip)) >146c146 >< n = ntt_find(hit_list, r->connection->remote_ip); >--- >> n = ntt_find(hit_list, r->connection->client_ip); >158c158 >< snprintf(hash_key, 2048, "%s_%s", r->connection->remote_ip, r->uri); >--- >> snprintf(hash_key, 2048, "%s_%s", r->connection->client_ip, r->uri); >165c165 >< ntt_insert(hit_list, r->connection->remote_ip, time(NULL)); >--- >> ntt_insert(hit_list, r->connection->client_ip, time(NULL)); >180c180 >< snprintf(hash_key, 2048, "%s_SITE", r->connection->remote_ip); >--- >> snprintf(hash_key, 2048, "%s_SITE", r->connection->client_ip); >187c187 >< ntt_insert(hit_list, r->connection->remote_ip, time(NULL)); >--- >> ntt_insert(hit_list, r->connection->client_ip, time(NULL)); >208c208 >< snprintf(filename, sizeof(filename), "%s/dos-%s", log_dir != NULL ? log_dir : DEFAULT_LOG_DIR, r->connection->remote_ip); >--- >> snprintf(filename, sizeof(filename), "%s/dos-%s", log_dir != NULL ? log_dir : DEFAULT_LOG_DIR, r->connection->client_ip); >215c215 >< LOG(LOG_ALERT, "Blacklisting address %s: possible DoS attack.", r->connection->remote_ip); >--- >> LOG(LOG_ALERT, "Blacklisting address %s: possible DoS attack.", r->connection->client_ip); >221,222c221,222 >< fprintf(file, "Subject: HTTP BLACKLIST %s\n\n", r->connection->remote_ip); >< fprintf(file, "mod_evasive HTTP Blacklisted %s\n", r->connection->remote_ip); >--- >> fprintf(file, "Subject: HTTP BLACKLIST %s\n\n", r->connection->client_ip); >> fprintf(file, "mod_evasive HTTP Blacklisted %s\n", r->connection->client_ip); >228c228 >< snprintf(filename, sizeof(filename), system_command, r->connection->remote_ip); >--- >> snprintf(filename, sizeof(filename), system_command, r->connection->client_ip);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 201306
: 158387 |
158472
|
158474
|
160830