{"id":13424887,"url":"https://github.com/asciimoo/morty","last_synced_at":"2025-04-04T22:05:06.950Z","repository":{"id":41454788,"uuid":"71005887","full_name":"asciimoo/morty","owner":"asciimoo","description":"Privacy aware web content sanitizer proxy as a service","archived":false,"fork":false,"pushed_at":"2023-09-19T21:36:57.000Z","size":2369,"stargazers_count":497,"open_issues_count":37,"forks_count":58,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-28T21:03:13.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asciimoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-10-15T18:27:48.000Z","updated_at":"2025-03-24T05:04:36.000Z","dependencies_parsed_at":"2024-01-07T22:44:57.529Z","dependency_job_id":"aca554ec-0854-4b40-b56d-ab23e7557a74","html_url":"https://github.com/asciimoo/morty","commit_stats":{"total_commits":102,"total_committers":11,"mean_commits":9.272727272727273,"dds":0.4509803921568627,"last_synced_commit":"f5bff1e285d3f973cacf73318e55175edafd633f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asciimoo%2Fmorty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asciimoo%2Fmorty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asciimoo%2Fmorty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asciimoo%2Fmorty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asciimoo","download_url":"https://codeload.github.com/asciimoo/morty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256110,"owners_count":20909240,"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-07-31T00:01:00.533Z","updated_at":"2025-04-04T22:05:06.934Z","avatar_url":"https://github.com/asciimoo.png","language":"Go","funding_links":[],"categories":["Go","\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"0ff94312f3ab4898f5996725133ea9d1\"\u003e\u003c/a\u003e未分类"],"readme":"# Morty\n\n[![Build Status](https://travis-ci.org/asciimoo/morty.svg)](https://travis-ci.org/asciimoo/morty)\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n[![Docker Pulls](https://img.shields.io/docker/pulls/dalf/morty)](https://hub.docker.com/r/dalf/morty)\n\nWeb content sanitizer proxy as a service\n\nMorty rewrites web pages to exclude malicious HTML tags and attributes. It also replaces external resource references to prevent third party information leaks.\n\nThe main goal of morty is to provide a result proxy for [searx](https://asciimoo.github.com/searx/), but it can be used as a standalone sanitizer service too.\n\nFeatures:\n\n - HTML sanitization\n - Rewrites HTML/CSS external references to locals\n - JavaScript blocking\n - No Cookies forwarded\n - No Referrers\n - No Caching/Etag\n - Supports GET/POST forms and IFrames\n - Optional HMAC URL verifier key to prevent service abuse\n\n\n## Installation and setup\nRequirement: Go version 1.10 or higher.\n\n```\n$ go get github.com/asciimoo/morty\n$ \"$GOPATH/bin/morty\" --help\n```\n\n### Usage\n\n```\n  -debug\n        Debug mode (default true)\n  -followredirect\n        Follow HTTP GET redirect\n  -ipv6\n        Allow IPv6 HTTP requests (default true)\n  -key string\n        HMAC url validation key (base64 encoded) - leave blank to disable validation\n  -listen string\n        Listen address (default \"127.0.0.1:3000\")\n  -proxy string\n        Use the specified HTTP proxy (ie: '[user:pass@]hostname:port'). Overrides -socks5, -ipv6.\n  -proxyenv\n        Use a HTTP proxy as set in the environment (HTTP_PROXY, HTTPS_PROXY and NO_PROXY). Overrides -proxy, -socks5, -ipv6.\n  -socks5 string\n        Use a SOCKS5 proxy (ie: 'hostname:port'). Overrides -ipv6.\n  -timeout uint\n        Request timeout (default 5)\n  -version\n        Show version\n```\n\n### Environment variables\n\nMorty can additionally be configured using the following environment variables:\n- `MORTY_ADDRESS`: Listen address (default to `127.0.0.1:3000`)\n- `MORTY_KEY`: HMAC url validation key (base64 encoded) to prevent direct URL opening. Leave blank to disable validation. Use `openssl rand -base64 33` to generate.\n- `DEBUG`: Enable/disable proxy and redirection logs (default to `true`). Set to `false` to disable.\n\n### Docker\n\n```\ndocker run -e DEBUG=false -e MORTY_ADDRESS=0.0.0.0:3000 dalf/morty\n```\n\n```\ndocker run -e DEBUG=false dalf/morty -listen 0.0.0.0:3000\n```\n\n\n### Test\n\n```\n$ cd \"$GOPATH/src/github.com/asciimoo/morty\"\n$ go test\n```\n\n\n### Benchmark\n\n```\n$ cd \"$GOPATH/src/github.com/asciimoo/morty\"\n$ go test -benchmem -bench .\n```\n\n\n## Bugs\n\nBugs or suggestions? Visit the [issue tracker](https://github.com/asciimoo/morty/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasciimoo%2Fmorty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasciimoo%2Fmorty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasciimoo%2Fmorty/lists"}