{"id":36993177,"url":"https://github.com/leowebguy/craft-crawler-detect","last_synced_at":"2026-01-13T23:45:22.228Z","repository":{"id":57014074,"uuid":"244513646","full_name":"leowebguy/craft-crawler-detect","owner":"leowebguy","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-27T03:48:06.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T17:25:33.583Z","etag":null,"topics":["craft-cms","craft-cms-plugin","craft-plugin","craft4","craft5","craftcms"],"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/leowebguy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-03-03T01:28:40.000Z","updated_at":"2024-12-04T13:12:58.000Z","dependencies_parsed_at":"2024-03-27T04:34:41.129Z","dependency_job_id":null,"html_url":"https://github.com/leowebguy/craft-crawler-detect","commit_stats":{"total_commits":18,"total_committers":3,"mean_commits":6.0,"dds":"0.33333333333333337","last_synced_commit":"3bae0baf37169854ac10b18c0f6e9b3486f9bb61"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/leowebguy/craft-crawler-detect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fcraft-crawler-detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fcraft-crawler-detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fcraft-crawler-detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fcraft-crawler-detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leowebguy","download_url":"https://codeload.github.com/leowebguy/craft-crawler-detect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leowebguy%2Fcraft-crawler-detect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":["craft-cms","craft-cms-plugin","craft-plugin","craft4","craft5","craftcms"],"created_at":"2026-01-13T23:45:21.800Z","updated_at":"2026-01-13T23:45:22.223Z","avatar_url":"https://github.com/leowebguy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrawlerDetect plugin for Craft\n\nCraft plugin for detecting bots/crawlers/spiders\n\n---\n\n### Installation\n\nOpen your terminal and go to your Craft project:\n\n```bash\ncd /path/to/project\n```\n\nThen tell Composer to load the plugin:\n\n```bash\ncomposer require leowebguy/craft-crawler-detect\n```\n\nIn the Control Panel, go to Settings → Plugins and click the “Install” button for Crawler Detect.\n\n---\n\n### Overview\n\nA wrapper for the [CrawlerDetect](https://github.com/JayBizzle/Crawler-Detect) by Mark Beech.\n\n---\n\n### Usage\n\nThe plugin exposes a Crawler Detect's methods:\n\n```twig\n{{ craft.crawlerDetect.isCrawler ? 'I am a crawler.' : 'I am not crawler.' }}\n```\n\n```twig\n{% if craft.crawlerDetect.isCrawler %} I am a crawler. {% endif %}\n```\n\nAlso passing user agent as string:\n```twig\n{% if craft.crawlerDetect.isCrawler('Mozilla/5.0 (compatible; Sosospider/2.0; +http://help.soso.com/webspider.htm)') %} I am a crawler. {% endif %}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fcraft-crawler-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleowebguy%2Fcraft-crawler-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleowebguy%2Fcraft-crawler-detect/lists"}