{"id":17526845,"url":"https://github.com/yusuf-daglioglu/mitmproxy_redirector","last_synced_at":"2025-04-15T18:42:13.050Z","repository":{"id":152180334,"uuid":"405619819","full_name":"yusuf-daglioglu/mitmproxy_redirector","owner":"yusuf-daglioglu","description":"Redirect your web browser to your any enviroment","archived":false,"fork":false,"pushed_at":"2024-09-06T11:27:20.000Z","size":1,"stargazers_count":29,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-12T06:22:33.843Z","etag":null,"topics":["http","local-development","man-in-the-middle","mitmproxy","productivity","proxy","security","ssl","websocket"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yusuf-daglioglu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-09-12T11:11:34.000Z","updated_at":"2024-09-06T11:27:23.000Z","dependencies_parsed_at":"2024-06-11T22:43:50.110Z","dependency_job_id":"29d5a3a8-17b9-48ac-80fe-5985fb9559cb","html_url":"https://github.com/yusuf-daglioglu/mitmproxy_redirector","commit_stats":null,"previous_names":["yusufdaglioglu/quarkus_artemis_demo_app","yusufdaglioglu/mitmproxy_redirector","yusuf-daglioglu/mitmproxy_redirector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuf-daglioglu%2Fmitmproxy_redirector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuf-daglioglu%2Fmitmproxy_redirector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuf-daglioglu%2Fmitmproxy_redirector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuf-daglioglu%2Fmitmproxy_redirector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusuf-daglioglu","download_url":"https://codeload.github.com/yusuf-daglioglu/mitmproxy_redirector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249131091,"owners_count":21217670,"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":["http","local-development","man-in-the-middle","mitmproxy","productivity","proxy","security","ssl","websocket"],"created_at":"2024-10-20T15:02:33.870Z","updated_at":"2025-04-15T18:42:13.026Z","avatar_url":"https://github.com/yusuf-daglioglu.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# mitmproxy redirector\r\nWith this script you can redirect only specific HTTP and Web-socket requests of your web browser to your local (or any other) web applications.\r\n\r\n# Why do I need this? I can already change \"hosts\" file.\r\nYou can also edit \"hosts\" file of your OS. But:\r\n- manipulation \"hosts\" file requires admin privileges.\r\n- using \"hosts\" file you can only change \"domain\" part of URL. You can not do below example with \"hosts\" file:\r\n\r\n   \u003e http://api-gateway.mydomain.com/service2 (you don't want redirect the service2)\r\n\r\n   \u003e http://api-gateway.mydomain.com/service1 (you want to redirect service1 to localhost)\r\n\r\n- If you have multiple browsers or browser-profiles with that script you can redirect only 1 browser instance. With \"hosts\" file you can only redirect whole system to same direction. For example: you may want to check \"service1\" both remote and localhost environment at the same time from different web browsers (or web browser profiles).\r\n\r\n# Requirements\r\n- This script can be run only with user privileges.\r\n- Mitmproxy has standalone executable for all OSes. You don't have to install it.\r\n\r\n## Usage\r\n\r\n- ### Certificate\r\n\r\nAdd $HOME/.mitmproxy/mitmproxy-ca-cert.cert file to web browser (only current browser profile is enough). This certificate file is creating after the first run of mitmproxy.\r\n\r\nFor Firefox:\r\n- Settings\r\n- View Certificates\r\n- Authorities\r\n- Import\r\n- Choose $HOME/.mitmproxy/mitmproxy-ca-cert.cert file only.\r\n\r\nOS based certificate formats exist. Read this: https://docs.mitmproxy.org/stable/concepts-certificates/#the-mitmproxy-certificate-authority\r\n\r\n- ### Defining the proxy to web browser\r\n\r\nAdd proxy for http and https: localhost:44700\r\n\r\n- ### Run mitmproxy\r\n\r\nLinux\r\n\r\n\u003e ./mitmweb -s mitm-redirect-url.py --listen-port 44700\r\n\r\nMS Windows\r\n\r\n\u003e mitmweb.exe -s mitm-redirect-url.py --listen-port 44700\r\n\r\n- ### Ignore CORS (Optional)\r\n\r\nOptionally you can ignore CORS for your current browser profile. You can use below extension for Firefox:\r\n\r\nhttps://addons.mozilla.org/en-US/firefox/addon/cors-everywhere/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusuf-daglioglu%2Fmitmproxy_redirector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusuf-daglioglu%2Fmitmproxy_redirector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusuf-daglioglu%2Fmitmproxy_redirector/lists"}