{"id":19922505,"url":"https://github.com/sa7mon/tinywaf","last_synced_at":"2025-08-02T21:34:17.999Z","repository":{"id":222762469,"uuid":"752136501","full_name":"sa7mon/tinywaf","owner":"sa7mon","description":"A simple WAF for Caddy Server","archived":false,"fork":false,"pushed_at":"2024-02-16T03:31:14.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-29T01:39:04.128Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/sa7mon.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}},"created_at":"2024-02-03T06:02:41.000Z","updated_at":"2024-02-03T06:08:24.000Z","dependencies_parsed_at":"2024-02-16T04:39:27.595Z","dependency_job_id":null,"html_url":"https://github.com/sa7mon/tinywaf","commit_stats":null,"previous_names":["sa7mon/tinywaf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sa7mon/tinywaf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sa7mon%2Ftinywaf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sa7mon%2Ftinywaf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sa7mon%2Ftinywaf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sa7mon%2Ftinywaf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sa7mon","download_url":"https://codeload.github.com/sa7mon/tinywaf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sa7mon%2Ftinywaf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268456833,"owners_count":24253294,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-12T22:11:10.711Z","updated_at":"2025-08-02T21:34:17.941Z","avatar_url":"https://github.com/sa7mon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinywaf\n\nA simple (naive) web application firewall for [Caddy](https://caddyserver.com) to ban IPs based on requested URI patterns.\n\n\n* **tested?** a little\n* **secure?** nahh\n* **memory leak**? big time\n* **simple?** oh yeah\n\n## Usage\n\nRefer to `Caddyfile` for example config\n\n```\ntinywaf {\n    bad_uris {\n        ^/wp-admin/.+$\n        ^/login.php\n        .*/wp-(includes|admin|content)/.*\n    }\n    ban_minutes 120\n}\n```\n\nIP addresses making requests to `bad_uris` will be banned for `ban_minutes` and will receive a `403 Forbidden`. Module is designed to be used with Cloudflare and will assume the `Cf-Connecting-Ip` header is present - change `ServeHTTP` logic if you don't want this.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsa7mon%2Ftinywaf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsa7mon%2Ftinywaf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsa7mon%2Ftinywaf/lists"}