{"id":13523591,"url":"https://github.com/msigley/PHP-HTTP-Tarpit","last_synced_at":"2025-04-01T01:33:00.306Z","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":60,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T07:17:21.395Z","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-03-25T19:33: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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246567060,"owners_count":20798102,"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":["http-tarpit","php"],"created_at":"2024-08-01T06:01:01.609Z","updated_at":"2025-04-01T01:33:00.272Z","avatar_url":"https://github.com/msigley.png","language":"PHP","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"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"}