{"id":18773131,"url":"https://github.com/webfactory/mod_log_ipmask","last_synced_at":"2025-04-13T09:07:33.680Z","repository":{"id":36407003,"uuid":"40711936","full_name":"webfactory/mod_log_ipmask","owner":"webfactory","description":"Apache module to remove IP addresses (or part thereof) from request data","archived":false,"fork":false,"pushed_at":"2018-06-21T19:39:22.000Z","size":38,"stargazers_count":16,"open_issues_count":3,"forks_count":10,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-13T09:07:24.096Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webfactory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-14T11:34:22.000Z","updated_at":"2021-08-03T08:41:23.000Z","dependencies_parsed_at":"2022-09-12T15:14:08.370Z","dependency_job_id":null,"html_url":"https://github.com/webfactory/mod_log_ipmask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmod_log_ipmask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmod_log_ipmask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmod_log_ipmask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fmod_log_ipmask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webfactory","download_url":"https://codeload.github.com/webfactory/mod_log_ipmask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688567,"owners_count":21145766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:32:55.972Z","updated_at":"2025-04-13T09:07:33.642Z","avatar_url":"https://github.com/webfactory.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mod_log_ipmask for Apache 2.4\n\nThis Apache module allows you to mask parts of the client's IP address before\nit is written to log files like the `AccessLog` or `CustomLog`. The `%a` and\n`%h`  placeholders provided by `mod_log_config` can be amended, so for \nexample `%{16}a` will only use the first 16 bits (two octets) of the remote IP\naddress.\n\nSince Apache 2.4, the [internal data structures distinguish](http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html#upgrading_byfunction)\nthe client's (or user agent's) IP address from the peer's address in the underlying\nconnection. This difference comes into play when forwarding connections, for example in reverse\nproxy setups or with load balancers.\n\nThe `%a` placeholder in [mod_log_config](http://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats) refers\nto the IP address of the client, that is, the actual *user agent*. This value can be masked by means\nof this module.\n\nThe additional `%{c}a` can be used to log the load balancer's IP address. This value *is not masked* by this module.\n\nThe `%h` placeholder may resolve to either a hostname or an IP address, depending on the `HostnameLookups` setting\nand/or the usage of hostname-based access control directives. Be aware that a mask (as in `%{16}h`) will *only* be\napplied when an IP address is found. In other words, when the hostname gets resolved, it will reveal the actual \nclient address.\n\n## Why? Who? What?\n\nMasking IP addresses in part or entirely is required by Germany's Telemedia\nAct. Keeping only partially masked IP addresses in logfiles still allows you\nto perform web analytics without having to process personal data.\n\n*This module was originally funded and developed by Saxonia's data protection\nofficer. Please see https://www.saechsdsb.de/ipmask for details or installation\ninstructions (German only) and the source code for original copyright and \nauthor.*\n\n**Caution** This is a fork of the original module, created by \n[webfactory GmbH](https://www.webfactory.de), Bonn, Germany. \n\nChanges against the original version:\n\n* Minimal change required to make this module work with Apache 2.4.\n* Removed the enforced masking of the last octet. By default, it will\n  still be masked, but you can configure your log format with `%{32}a`\n  to get full IP addresses if you wish.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fmod_log_ipmask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfactory%2Fmod_log_ipmask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fmod_log_ipmask/lists"}