{"id":19331074,"url":"https://github.com/systemli/dereferrer","last_synced_at":"2025-10-14T03:21:17.057Z","repository":{"id":194321724,"uuid":"690558939","full_name":"systemli/dereferrer","owner":"systemli","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-03T07:04:50.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-03T09:08:25.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/systemli.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-12T12:34:00.000Z","updated_at":"2025-10-03T07:04:53.000Z","dependencies_parsed_at":"2023-09-22T09:36:41.686Z","dependency_job_id":"93815e1d-1a93-485e-9566-1035af415087","html_url":"https://github.com/systemli/dereferrer","commit_stats":null,"previous_names":["systemli/dereferrer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/systemli/dereferrer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemli%2Fdereferrer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemli%2Fdereferrer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemli%2Fdereferrer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemli%2Fdereferrer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/systemli","download_url":"https://codeload.github.com/systemli/dereferrer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/systemli%2Fdereferrer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017790,"owners_count":26086143,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T02:38:57.110Z","updated_at":"2025-10-14T03:21:17.026Z","avatar_url":"https://github.com/systemli.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dereferrer Service\n\n[![Integration](https://github.com/systemli/dereferrer/actions/workflows/integration.yml/badge.svg)](https://github.com/systemli/dereferrer/actions/workflows/integration.yml) [![Quality](https://github.com/systemli/dereferrer/actions/workflows/quality.yml/badge.svg)](https://github.com/systemli/dereferrer/actions/workflows/quality.yml) [![codecov](https://codecov.io/gh/systemli/dereferrer/graph/badge.svg?token=TXTUP2J7MW)](https://codecov.io/gh/systemli/dereferrer)\n\nThis small service aims to prevent links to be tracked by the website they are linking to. It takes the URL as a parameter and returns a redirect to the URL with the referrer header removed. Especially useful for privacy-aware sites.\n\nImagine you serve this service on `https://dereferrer.example.com` and you want to link to `https://example.com`. Instead of linking to `https://example.com` directly, you link to `https://dereferrer.example.com/?https%3A%2F%2Fexample.com`. The service will then redirect you to `https://example.com` with the referrer header replaced with `https://dereferrer.example.com`.\n\nImportant: The query parameter should be URL encoded.\n\n## Usage\n\n### Environment Variables\n\n| Variable | Description | Default |\n| -------- | ----------- | ------- |\n| `LISTEN_ADDR` | Address to listen on | `:8080` |\n| `METRICS_ADDR` | Address to listen on for metrics | `:8081` |\n| `LOG_LEVEL` | Log level | `info` |\n\n### Docker\n\n```bash\ndocker run -p 8080:8080 -p 8081:8081 -d --name dereferrer \\\ndocker.io/systemli/dereferrer:latest\n```\n\nThe service needs no special capabilities and can start as read-only.\n\n```bash\ndocker run -p 8080:8080 -p 8081:8081 -d --name dereferrer \\\n--read-only --cap-drop all \\\ndocker.io/systemli/dereferrer:latest\n```\n\n### Go\n\n```bash\ngo install github.com/systemli/dereferrer@latest\ndereferrer\n```\n\n## Metrics\n\nThe service exposes metrics on the `/metrics` endpoint on port `8081`. The metrics are compatible with Prometheus.\n\nExported metrics:\n\n```text\n# HELP requests_total Number of requests\n# TYPE requests_total counter\nrequests_total{status=\"200\"} 6145\nrequests_total{status=\"400\"} 619\nrequests_total{status=\"404\"} 651\nrequests_total{status=\"405\"} 35\n```\n\n## License\n\nThis project is licensed under the GPL-3.0 License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemli%2Fdereferrer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemli%2Fdereferrer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemli%2Fdereferrer/lists"}