{"id":16712796,"url":"https://github.com/merrychap/squid-redirect","last_synced_at":"2025-03-15T05:18:05.308Z","repository":{"id":113311913,"uuid":"136503382","full_name":"merrychap/squid-redirect","owner":"merrychap","description":":recycle: Redirection tool helper for squid proxy-server to redirect web requests on demand to another location","archived":false,"fork":false,"pushed_at":"2018-06-18T15:17:30.000Z","size":227,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T20:48:29.169Z","etag":null,"topics":["redirect","redirection","squid","squid-proxy"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/merrychap.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":"2018-06-07T16:22:30.000Z","updated_at":"2018-09-04T06:50:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d3805ff-f4bd-4917-9405-40bdbbcd655e","html_url":"https://github.com/merrychap/squid-redirect","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/merrychap%2Fsquid-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merrychap%2Fsquid-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merrychap%2Fsquid-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merrychap%2Fsquid-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/merrychap","download_url":"https://codeload.github.com/merrychap/squid-redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685654,"owners_count":20330995,"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":["redirect","redirection","squid","squid-proxy"],"created_at":"2024-10-12T20:44:05.786Z","updated_at":"2025-03-15T05:18:05.291Z","avatar_url":"https://github.com/merrychap.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# squid-redirect\n\n## General info\n`squid-redirect` is a tool for managing redirections of [`squid`](http://www.squid-cache.org/) proxy-server. It is easy to use and you can add redirect rule without any effort.\n\nIt was tested on Kali Linux.\n\n## How it works\nAll redirects are stored in one json file called `redirections.json`. You can change this file without restarting `squid `, all changes will be applied immediately.\n\n**Don't forget to leave one empty extra line at the bottom of `redirections.json` file!**\n\n## How to setup\n0. You can run `setup.sh` file. It will produce all below operations. Now see 5 step.\n\n1. First of all, we have to install `squid` itself (using apt-get or building by yourself):\n\n```sh\n$ sudo apt-get install squid\n```\n\n2. Build `squid-redirect` using make:\n```sh\nmake\n```\n\n3. The next step is copying `src/main` binary and `redirections.json` file to `/tmp/squid-redirect/` directory (this directory will be changed in the future).\n\n4. After this, copy [squid.conf](./squid.conf) to `/etc/squid/` (make a backup of the original `squid.conf` before replacing it).\n\n5. Restart `squid` and reconfigure it by typing:\n\n```sh\nsudo service squid restart\nsudo squid -k reconfigure\n```\n\n6. Now you can change `/tmp/squid-redirect/redirections.json` file to setup desired redirections.\n\nAlso, if you want to **see logs**, then type the next:\n\n```sh\nsudo journalctl -u squid.service -b\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerrychap%2Fsquid-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerrychap%2Fsquid-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerrychap%2Fsquid-redirect/lists"}