Title: Banned IP entry into an error log · Issue #332 · etr/libhttpserver · GitHub
Open Graph Title: Banned IP entry into an error log · Issue #332 · etr/libhttpserver
X Title: Banned IP entry into an error log · Issue #332 · etr/libhttpserver
Description: Is there any issue to write banned IP entry to an error log ? Something like that: if ((((static_cast
Open Graph Description: Is there any issue to write banned IP entry to an error log ? Something like that: if ((((static_cast
X Description: Is there any issue to write banned IP entry to an error log ? Something like that: if ((((static_cast<webserver*>(cls))->default_policy == http_utils::ACCEPT) && ((static_cast<w...
Opengraph URL: https://github.com/etr/libhttpserver/issues/332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Banned IP entry into an error log","articleBody":"Is there any issue to write banned IP entry to an error log ?\r\n\r\nSomething like that:\r\n```c++\r\nif ((((static_cast\u003cwebserver*\u003e(cls))-\u003edefault_policy == http_utils::ACCEPT) \u0026\u0026\r\n ((static_cast\u003cwebserver*\u003e(cls))-\u003ebans.count(ip_representation(addr))) \u0026\u0026\r\n (!(static_cast\u003cwebserver*\u003e(cls))-\u003eallowances.count(ip_representation(addr)))) ||\r\n (((static_cast\u003cwebserver*\u003e(cls))-\u003edefault_policy == http_utils::REJECT) \u0026\u0026\r\n ((!(static_cast\u003cwebserver*\u003e(cls))-\u003eallowances.count(ip_representation(addr))) ||\r\n ((static_cast\u003cwebserver*\u003e(cls))-\u003ebans.count(ip_representation(addr)))))) {\r\n \r\n //log banned IP\r\n std::string msg = \"IP '\" + httpserver::http::get_ip_str(addr) + \"' rejected\\n\";\r\n webserver* dws = static_cast\u003cwebserver*\u003e(cls);\r\n dws-\u003elog_error(msg);\r\n\r\n return MHD_NO;\r\n}\r\n```","author":{"url":"https://github.com/RobertFojtikAEN","@type":"Person","name":"RobertFojtikAEN"},"datePublished":"2023-10-12T10:04:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/332/libhttpserver/issues/332"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ca4cfaf-c77c-8c84-078c-0765e36b74f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B24:348185:306BCB8:3FD78A5:6964A2AD |
| html-safe-nonce | bb8c9c2d5b5041771aaf2e4dac9a6169f34c14ec3b02e30c6defa05b0f5533b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjI0OjM0ODE4NTozMDZCQ0I4OjNGRDc4QTU6Njk2NEEyQUQiLCJ2aXNpdG9yX2lkIjoiNDk3Njc3NjUzMjYyMTMwNDQ5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 71a7ecef35dc87e063b549a85d8c2f15951cf9b4207bf42121f4653e3f89c69f |
| hovercard-subject-tag | issue:1939650555 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/etr/libhttpserver/332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29866efcec495ad0c14d2fa9755f80e6c10114bdd1eec088ee305bf2ac4514b6/etr/libhttpserver/issues/332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29866efcec495ad0c14d2fa9755f80e6c10114bdd1eec088ee305bf2ac4514b6/etr/libhttpserver/issues/332 |
| og:image:alt | Is there any issue to write banned IP entry to an error log ? Something like that: if ((((static_cast |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RobertFojtikAEN |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| turbo-cache-control | no-preview |
| go-import | github.com/etr/libhttpserver git https://github.com/etr/libhttpserver.git |
| octolytics-dimension-user_id | 1201536 |
| octolytics-dimension-user_login | etr |
| octolytics-dimension-repository_id | 3416891 |
| octolytics-dimension-repository_nwo | etr/libhttpserver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3416891 |
| octolytics-dimension-repository_network_root_nwo | etr/libhttpserver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width