{"id":27781248,"url":"https://github.com/vernette/censorcheck","last_synced_at":"2025-04-30T12:43:37.419Z","repository":{"id":288764344,"uuid":"969113154","full_name":"vernette/censorcheck","owner":"vernette","description":"🔒 A bash script that checks website accessibility under DPI censorship and geo-restriction systems","archived":false,"fork":false,"pushed_at":"2025-04-27T10:01:07.000Z","size":36,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T11:18:43.193Z","etag":null,"topics":["bash","censorship-circumvention","curl","dpi","geoblock","linux"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/vernette.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,"zenodo":null}},"created_at":"2025-04-19T12:17:42.000Z","updated_at":"2025-04-27T10:01:10.000Z","dependencies_parsed_at":"2025-04-27T11:18:38.831Z","dependency_job_id":null,"html_url":"https://github.com/vernette/censorcheck","commit_stats":null,"previous_names":["vernette/censorcheck"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vernette%2Fcensorcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vernette%2Fcensorcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vernette%2Fcensorcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vernette%2Fcensorcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vernette","download_url":"https://codeload.github.com/vernette/censorcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251702785,"owners_count":21630092,"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":["bash","censorship-circumvention","curl","dpi","geoblock","linux"],"created_at":"2025-04-30T12:43:36.784Z","updated_at":"2025-04-30T12:43:37.407Z","avatar_url":"https://github.com/vernette.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# censorcheck\n\nA bash script for checking the accessibility of websites potentially affected by Deep Packet Inspection (DPI) blocking or geographic restrictions.\n\n![image](https://i.imgur.com/T6NsOnI.png)\n\n## Important note about status codes\n\n\u003e [!WARNING]\n\u003e Some websites may not return expected status codes due to various security measures\n\n- Sites like [chatgpt.com](https://chatgpt.com), [claude.ai](https://claude.ai) consistently return `403` status due to JavaScript verification checks, even when accessed from unrestricted locations\n- Sites like [intel.com](https://intel.com) may return `200` status but still display blocking notifications in the actual content\n- Results should be verified manually when behavior seems inconsistent with your actual location\n\n## Features\n\n- Tests both HTTP and HTTPS protocols for each domain\n- Detects different access scenarios: available, blocked, redirected, or access denied\n- Includes predefined lists of commonly DPI-blocked and geo-restricted websites\n- Supports custom domain lists via file input\n- Configurable connection timeout and retry parameters\n- Color-coded output for easy readability\n\n## Included Domain Lists\n\nThe script contains predefined lists of websites commonly affected by:\n\n- **DPI Blocking**: Includes social media, video platforms, and other commonly restricted services\n- **Geographic Restrictions**: Popular streaming services and platforms that implement geo-blocking\n\n## Dependencies\n\n- bash\n- curl\n- nslookup\n\n## Usage\n\n### Run directly\n\nBasic usage:\n\n```bash\nbash \u003c(wget -qO- https://github.com/vernette/censorcheck/raw/master/censorcheck.sh)\n```\n\nCheck only DPI-blocked sites\n\n```bash\nbash \u003c(wget -qO- https://github.com/vernette/censorcheck/raw/master/censorcheck.sh) --mode dpi\n```\n\nUse custom User-Agent\n\n```bash\nbash \u003c(wget -qO- https://github.com/vernette/censorcheck/raw/master/censorcheck.sh) --user-agent \"CustomAgent/2.0\"\n```\n\nCheck domains from a local file with 10 second timeout\n\n```bash\nbash \u003c(wget -qO- https://github.com/vernette/censorcheck/raw/master/censorcheck.sh) --file ~/my-domains.txt --timeout 10\n```\n\n### Local usage\n\nDownload and run locally:\n\n```bash\nwget https://github.com/vernette/censorcheck/raw/master/censorcheck.sh\nchmod +x censorcheck.sh\n\n# Basic run\n./censorcheck.sh\n\n# Run with parameters\n./censorcheck.sh --mode geoblock\n./censorcheck.sh --mode dpi --timeout 10 --retries 3\n./censorcheck.sh --file custom-domains.txt\n```\n\n## Options\n\n```\nUsage: censorcheck.sh [OPTIONS]\n\nChecks accessibility of websites that might be blocked by DPI or geolocation restrictions\n\nOptions:\n  -h, --help         Display this help message and exit\n  -m, --mode         Set checking mode: 'dpi', 'geoblock', or 'both' (default: both)\n  -t, --timeout      Set connection timeout in seconds (default: 5)\n  -r, --retries      Set number of connection retries (default: 2)\n  -u, --user-agent   Set custom User-Agent string (default: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0)\n  -f, --file         Read domains from specified file instead of using built-in lists\n  -6, --ipv6         Use IPv6 (default: IPv4)\n\nExamples:\n  censorcheck.sh                               # Check all predefined domains with default settings\n  censorcheck.sh --mode dpi                    # Check only DPI-blocked sites\n  censorcheck.sh --timeout 10 --retries 3      # Use longer timeout and more retries\n  censorcheck.sh --user-agent \"MyAgent/1.0\"    # Use custom User-Agent\n  censorcheck.sh --file my-domains.txt         # Check domains from custom file\n  censorcheck.sh --ipv6                        # Use IPv6 instead of IPv4\n\nThe domain file should contain one domain per line. Lines starting with # are ignored\n```\n\n## Custom domain list\n\nYou can check your own list of domains by creating a text file with one domain per line:\n\n```\n# My custom domains to check\nexample.com\ntest-site.net\n# Commented lines are ignored\nanother-domain.org\n\n# Empty lines are also ignored\n```\n\nThen run the script with:\n\n```bash\n./censorcheck.sh --file my-domains.txt\n```\n\n## Test results\n\nThe script provides color-coded results for each domain:\n\n- **Green**: Site is available (HTTP 200)\n- **Red**: Site is blocked, unreachable, or access denied (HTTP 403)\n- **Blue**: Site redirects to another URL\n- **Orange**: Other HTTP status codes\n\n## Contributing\n\nContributions are welcome! Feel free to submit pull requests to add new domains to the predefined lists or improve the script's functionality.\n\n## TODO\n\n- [ ] DNS spoofing detection by ISP or hosting provider\n- [ ] Results table\n- [ ] JSON output\n- [ ] Debug mode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvernette%2Fcensorcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvernette%2Fcensorcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvernette%2Fcensorcheck/lists"}