{"id":26870850,"url":"https://github.com/msigley/php-http-tarpit","last_synced_at":"2026-03-06T04:31:56.501Z","repository":{"id":16703696,"uuid":"19460437","full_name":"msigley/PHP-HTTP-Tarpit","owner":"msigley","description":"Confuse and waste bot scanners time.","archived":false,"fork":false,"pushed_at":"2023-09-26T20:40:16.000Z","size":30,"stargazers_count":61,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T06:37:53.131Z","etag":null,"topics":["http-tarpit","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/msigley.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}},"created_at":"2014-05-05T15:22:10.000Z","updated_at":"2025-04-22T10:25:09.000Z","dependencies_parsed_at":"2023-09-27T01:19:39.266Z","dependency_job_id":null,"html_url":"https://github.com/msigley/PHP-HTTP-Tarpit","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/msigley/PHP-HTTP-Tarpit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msigley%2FPHP-HTTP-Tarpit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msigley%2FPHP-HTTP-Tarpit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msigley%2FPHP-HTTP-Tarpit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msigley%2FPHP-HTTP-Tarpit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msigley","download_url":"https://codeload.github.com/msigley/PHP-HTTP-Tarpit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msigley%2FPHP-HTTP-Tarpit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30161747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:22:03.816Z","status":"ssl_error","status_checked_at":"2026-03-06T04:22:00.183Z","response_time":250,"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":["http-tarpit","php"],"created_at":"2025-03-31T07:17:29.098Z","updated_at":"2026-03-06T04:31:56.483Z","avatar_url":"https://github.com/msigley.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"PHP-HTTP-Tarpit\n===============\n\nConfuse and waste bot scanners time. \nUrl rewrite unwanted bot traffic to the la_brea.php file. It is important you use Url rewrites not redirects as most bots ignore location headers.\n\nBased on research done by Chris John Riley. http://github.com/ChrisJohnRiley/\n\nDefense Techinques Implemented\n------------------------------\n* Blinding Mode\n\t* Return 200 Founds for all requests.\n\t* Outputs random alphanumeric content to client.\n\t\t* Special phrases and characters injected into the content.\n\t* Increases amount of false positives in scanners' results.\n* Ninja Mode\n\t* Return 404 Not Founds for all requests.\n\t* Sometimes outputs random content as described above.\n\t* Increases amount of negatives in scanners' results.\n* HTTP Tarpit\n\t* Returns a 101, 102, 103, or 401 for all requests.\n\t* Generates long response wait times to client.\n\t* Wastes time of scanners.\n* Chained Redirection\n\t* Returns a 301, 302, or 307 for all requests.\n\t* Redirects to a randomly generated url many times in succession.\n\t* Wastes time of scanners.\n\t* Punishes bad web crawlers for not respecting the robots.txt. Looking at you Baidu.\n\t* Sometimes ends in Bounceback Redirection (see below).\n* Bounceback Redirection\n\t* Returns a 301, 302, or 307 for all requests.\n\t* Redirects request back to requesting ip on common http/https ports.\n\t* Wastes time of scanners.\n\t* Could potentially tie up resources on attackers edge node.\n* Random Defense Selection \n\t* For each request\n\t* By the minute\n\t\t* By the minute is very effective in baiting the bots and by not looking too random or predictable.\n\nWishlist\n--------\n* ~~Robots.txt file emulation to not punish good web crawlers.~~\n\t* This is handled better by hosting an actual robots.txt and creating an exemption in the url rewrite to allow access to it.\n* Support for dumping contents of random files in a folder for the Blinding Mode defense.\n\nWordpress Implementation\n------------------------\nI have implemented this tarpit script into a Wordpress security plugin here to help with brute force attacks:\nhttps://github.com/msigley/WP-Simple-Security\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsigley%2Fphp-http-tarpit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsigley%2Fphp-http-tarpit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsigley%2Fphp-http-tarpit/lists"}