{"id":24918442,"url":"https://github.com/letorbi/mod_anonip","last_synced_at":"2025-04-09T16:52:45.365Z","repository":{"id":153781320,"uuid":"196562913","full_name":"letorbi/mod_anonip","owner":"letorbi","description":"An Apache module to anonymize IP addresses.","archived":false,"fork":false,"pushed_at":"2023-03-09T16:34:29.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-23T19:01:51.690Z","etag":null,"topics":["apache","module","privacy"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/letorbi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-12T10:51:08.000Z","updated_at":"2023-03-09T16:27:35.000Z","dependencies_parsed_at":"2023-07-25T16:03:11.830Z","dependency_job_id":null,"html_url":"https://github.com/letorbi/mod_anonip","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/letorbi%2Fmod_anonip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letorbi%2Fmod_anonip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letorbi%2Fmod_anonip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letorbi%2Fmod_anonip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letorbi","download_url":"https://codeload.github.com/letorbi/mod_anonip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248073556,"owners_count":21043465,"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":["apache","module","privacy"],"created_at":"2025-02-02T09:31:41.992Z","updated_at":"2025-04-09T16:52:45.360Z","avatar_url":"https://github.com/letorbi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"mod_anonip - Anonymize IP addresses in Apache\n=============================================\n\nA simple Apache2 module to anonymize the IP address of any request by a specific number of bytes. It is licensed as open source under the Apache License version 2.0.\n\nThe original version of *mod_anonip* is based on [*mod_removeip*](https://github.com/moba/libapache-mod-removeip),\nbut *mod_anonip* just anonymizes the IP-address by removing a specified number of bytes instead of removing the IP-address completely. This - unlike *mod_removeip* - allows you to preserve the privacy of your visitors, while still being able to log the origin country of a request or to serve website content based on GeoIP.\n\n*This project is still maintained, but since I have a lot of other things on my list, it is unlikely that I will commit something new to the codebase in the forseeable future. However, I will merge pull requests and fix bugs that have been reported.*\n\nInstallation\n============\n\nFirst you have to clone the repository and compile the module:\n\n    $ git clone https://github.com/letorbi/mod_anonip\n    $ cd mod_anonip/module\n    $ make anonip\n\nYou might have to install some kind of Apache development package (`libapache2-prefork-dev` or `apache2-threaded-dev` on Ubuntu) to have all tools required for compilation.\n\nAfter the compilation has finished, you can install and activate the module:\n\n    # make install\n    # cd ../conf\n    # cp * /etc/apache2/mods-available/\n    # a2enmod anonip\n\nAfter enabling the module you have to restart Apache (`service apache2 restart` on Ubuntu).\n\nConfiguration\n=============\n\nThe module comes with two configuration option, one which defines how many bytes should be masked and the other one which defines if you are behind a reverse proxy:\n\n    AnonipMask = 2\n    AnonipBehindProxy = 1\n    \nThe default value for `AnonipMask` is `0`, so `mod_anonip` will do nothing if no configuration exists. The configuration files shipped with the module set `AnonipMask = 2`. Values between 0 and 4 are valid with the following results:\n\n    AnonipMask    Anonymized address\n    0             192.168.1.1\n    1             192.168.1.0\n    2             192.168.0.0\n    3             192.0.0.0\n    4             0.0.0.0\n    [other]       192.168.1.1\n\nAs long, as you mask at least 2 bytes of the IP address, your website will be in accordance with the privacy recommendations of the [Independent Centre for Privacy Protection in Schleswig-Holstein, Germany (ULD)](https://www.datenschutzzentrum.de).\n\nThe default value for `AnonipBehindProxy` is `0`, so `mod_anonip` will assume you are not behind a reverse proxy and use the IP provided by the currently used connection. If set to `1`, it will use the IP provided from the HTTP-header `X-Forwarded-For`. The header can be spoofed, so don't use that setting, if you do not trust the reverse proxy.\n\n----\n\nCopyright 2014-2019 Torben Haase \\\u003c[https://pixelsvsbytes.com](https://pixelsvsbytes.com)\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletorbi%2Fmod_anonip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletorbi%2Fmod_anonip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletorbi%2Fmod_anonip/lists"}