{"id":22822556,"url":"https://github.com/yqs112358/cfworkers-reverseproxy-withauth","last_synced_at":"2026-02-13T16:11:50.148Z","repository":{"id":267058407,"uuid":"899017581","full_name":"yqs112358/CFWorkers-ReverseProxy-WithAuth","owner":"yqs112358","description":"Simple Reverse Proxy with Http Basic Auth via Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2024-12-05T13:22:28.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T16:47:43.602Z","etag":null,"topics":["basic-auth","cloudflare","cloudflare-workers","http-basic-auth","reverse-proxy"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/yqs112358.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":"2024-12-05T13:21:01.000Z","updated_at":"2024-12-05T13:25:11.000Z","dependencies_parsed_at":"2024-12-08T02:42:52.338Z","dependency_job_id":"7dd8fcd9-bdfc-4431-acba-dd196f259d65","html_url":"https://github.com/yqs112358/CFWorkers-ReverseProxy-WithAuth","commit_stats":null,"previous_names":["yqs112358/cfworkers-reverseproxy-withauth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yqs112358/CFWorkers-ReverseProxy-WithAuth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FCFWorkers-ReverseProxy-WithAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FCFWorkers-ReverseProxy-WithAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FCFWorkers-ReverseProxy-WithAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FCFWorkers-ReverseProxy-WithAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yqs112358","download_url":"https://codeload.github.com/yqs112358/CFWorkers-ReverseProxy-WithAuth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yqs112358%2FCFWorkers-ReverseProxy-WithAuth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29412039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["basic-auth","cloudflare","cloudflare-workers","http-basic-auth","reverse-proxy"],"created_at":"2024-12-12T16:12:22.266Z","updated_at":"2026-02-13T16:11:50.111Z","avatar_url":"https://github.com/yqs112358.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Reverse Proxy with Http-Basic Auth via Cloudflare Workers\n\n\u003e Forked from https://github.com/dommmel/cloudflare-workers-basic-auth and add simple reverse proxy\n\n## Attention!\nNever create reverse proxy on Cloudflare Workers **without auth protection**! \n\n- Services without auth may be abused, and then lead to your CloudFlare account being locked.\n- Use this project to protect your reverse proxy behind http-basic auth.\n\n## Usage\n1. Create a new CloudFlare worker\n2. Copy the code from [index.js](https://github.com/yqs112358/CFWorker-BasicAuth-Reverse-Proxy/blob/master/index.js) to CloudFlare worker's code editor\n3. Set reverse parameters at the top of `index.js`\n```javascript\nconst SECRET    = \"your-secret\";           // Set your secret key\nconst HOST_NAME = \"target-website.com\";    // Set target hostname you want to proxy (For example: \"somewebsite.com\" / \"anotherwebsite.net:12345\")\nconst SUB_PATH  = \"/\";                     // Set the sub-path you want to proxy (\"/\" in default)\n```\n4. Save and deploy your CloudFlare worker\n5. Visit `https://your-secret@xxx.workers.dev` to pass http-basic auth and access target website through proxy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyqs112358%2Fcfworkers-reverseproxy-withauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyqs112358%2Fcfworkers-reverseproxy-withauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyqs112358%2Fcfworkers-reverseproxy-withauth/lists"}