{"id":13795359,"url":"https://github.com/geerlingguy/drupal-honeypot","last_synced_at":"2025-03-18T05:30:28.440Z","repository":{"id":139937302,"uuid":"94282341","full_name":"geerlingguy/drupal-honeypot","owner":"geerlingguy","description":"Official GitHub mirror of the Honeypot module for Drupal.","archived":false,"fork":false,"pushed_at":"2020-08-19T16:36:38.000Z","size":181,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"2.0.x","last_synced_at":"2025-02-28T07:11:59.452Z","etag":null,"topics":["drupal","honeypot","modules","spam"],"latest_commit_sha":null,"homepage":"https://www.drupal.org/project/honeypot","language":"PHP","has_issues":false,"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/geerlingguy.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,"publiccode":null,"codemeta":null}},"created_at":"2017-06-14T02:58:10.000Z","updated_at":"2023-07-12T01:26:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2af7d70-990f-4e26-85a4-5b7fcc04c755","html_url":"https://github.com/geerlingguy/drupal-honeypot","commit_stats":null,"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fdrupal-honeypot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fdrupal-honeypot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fdrupal-honeypot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fdrupal-honeypot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/drupal-honeypot/tar.gz/refs/heads/2.0.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366260,"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":["drupal","honeypot","modules","spam"],"created_at":"2024-08-03T23:00:55.110Z","updated_at":"2025-03-18T05:30:27.579Z","avatar_url":"https://github.com/geerlingguy.png","language":"PHP","funding_links":[],"categories":["\u003ca id=\"a53d22b9c5d09dc894413453f4755658\"\u003e\u003c/a\u003e未分类"],"sub_categories":[],"readme":"\n# Honeypot\n\n[![Build Status](https://travis-ci.org/geerlingguy/drupal-honeypot.svg?branch=8.x-1.x)](https://travis-ci.org/geerlingguy/drupal-honeypot)\n\n\n## Installation\n\nTo install this module, `composer require` it, or  place it in your modules\nfolder and enable it on the modules page.\n\n\n## Configuration\n\nAll settings for this module are on the Honeypot configuration page, under the\nConfiguration section, in the Content authoring settings. You can visit the\nconfiguration page directly at admin/config/content/honeypot.\n\nNote that, when testing Honeypot on your website, make sure you're not logged in\nas an administrative user or user 1; Honeypot allows administrative users to\nbypass Honeypot protection, so by default, Honeypot will not be added to forms\naccessed by site administrators.\n\n\n## Use in Your Own Forms\n\nIf you want to add honeypot to your own forms, or to any form through your own\nmodule's hook_form_alter's, you can simply place the following function call\ninside your form builder function (or inside a hook_form_alter):\n\n    honeypot_add_form_protection(\n      $form,\n      $form_state,\n      ['honeypot', 'time_restriction']\n    );\n\nNote that you can enable or disable either the honeypot field, or the time\nrestriction on the form by including or not including the option in the array.\n\n\n## Testing\n\nHoneypot includes a `docker-compose.yml` file that can be used for testing purposes. To build a Drupal 8 environment for local testing, do the following:\n\n  1. Make sure you have Docker for Mac (or for whatever OS you're using) installed.\n  1. Run the following commands in this directory to start the environment and install Drush:\n\n     ```\n     docker-compose up -d\n     # Wait a couple minutes for the container to build the Drupal codebase.\n     docker-compose exec drupal bash -c 'composer require drush/drush'\n     ```\n\n  1. Link the honeypot module directory into the Drupal modules directory:\n\n     ```\n     docker-compose exec drupal ln -s /opt/honeypot/ /var/www/html/web/modules/honeypot\n     ```\n\n  1. Install Drupal with Drush:\n\n     ```\n     docker-compose exec drupal bash -c 'vendor/bin/drush site:install standard --site-name=\"Honeypot Test\" --account-pass admin -y \u0026\u0026 chown -R www-data:www-data web/sites/default/files'\n     ```\n\n  1. Log into `http://localhost/` with `admin`/`admin` and enable Honeypot (and the Testing module, if desired).\n\n## Credit\n\nThe Honeypot module was originally developed by Jeff Geerling of [Midwestern Mac,\nLLC](https://www.midwesternmac.com/), and sponsored by [Flocknote](https://flocknote.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fdrupal-honeypot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fdrupal-honeypot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fdrupal-honeypot/lists"}