{"id":22640749,"url":"https://github.com/beastbytes/anti-spam","last_synced_at":"2025-09-07T14:09:53.618Z","repository":{"id":198564587,"uuid":"701062084","full_name":"beastbytes/anti-spam","owner":"beastbytes","description":"Antispam inputs to help detect form submission by spam-bots.","archived":false,"fork":false,"pushed_at":"2023-10-05T20:48:30.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T05:26:04.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beastbytes.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}},"created_at":"2023-10-05T20:45:05.000Z","updated_at":"2023-10-05T20:45:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"21866d87-b0c3-47cb-846f-02a5154314d9","html_url":"https://github.com/beastbytes/anti-spam","commit_stats":null,"previous_names":["beastbytes/anti-spam"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/beastbytes/anti-spam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fanti-spam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fanti-spam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fanti-spam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fanti-spam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beastbytes","download_url":"https://codeload.github.com/beastbytes/anti-spam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beastbytes%2Fanti-spam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046000,"owners_count":25212982,"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-09-07T02:00:09.463Z","response_time":67,"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-12-09T04:13:47.747Z","updated_at":"2025-09-07T14:09:53.567Z","avatar_url":"https://github.com/beastbytes.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AntiSpam\nAntispam inputs to help detect form submission by spam-bots.\n\nFor license information check the [LICENSE](LICENSE.md) file.\n\n## Features\n* Two methods of detecting a form submitted by a spam-bot: Hash and Honey Pot\n* No need to declare additional attributes, attribute labels, or rules in your model\n* Minimal additions to your model: add a trait and a behavior, and call behavior methods from the attributeLabel() \n  and rules() methods\n* `hasSpam` attribute added to your model (by the behavior) to determine whether a form has been submitted by a spam-bot\n\n## Input Types\n### Hash\nCreated a hidden input that receives the MD5 hash of the real input value on its blur event. Spam-bots to do not trigger\ninput events, so when the form is validated, if the content of _hash_ input does not equal the MD5 hash of the real \ninput value the form has been submitted by a spam-bot.\n\n### Honey Pot\nSpam-bots look for _\"standard\"_ field names: e.g. email, and/or complete all fields on a form. When applied to a \nmodel attribute, an additional input is created; this field receives the name of the attribute and hidden by CSS so \nthat it cannot be completed by a human but can be by a spam-bot. Therefore, when the form is validated if the _honey \npot_ field contains a value the form has been submitted by a spam-bot. A separate input is created for a human to \ncomplete; the value in this field is copied to the real attribute after validation, so application code only ever uses \nthe real attribute.\n\n**There are few things to note:**\n* Both Hash and Honey Pot _must_ be applied to attributes that generate text inputs.\n* Hash and Honey Pot _**must not**_ be applied to the same attribute\n* You may have more than one Hash and/or Honey Pot field in the same form\n\n## Installation\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n```\ncomposer require --prefer-dist BeastBytes/antispam\n```\nor add\n\n```json\n\"beastbytes/antispam\": \"^1.0.0\"\n```\nto the `require` section of your composer.json.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Fanti-spam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeastbytes%2Fanti-spam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeastbytes%2Fanti-spam/lists"}