The plugin exposes a Crawler Detect's methods:

{{ craft.crawlerDetect.isCrawler ? 'I am a crawler.' : 'I am not crawler.' }}
{% if craft.crawlerDetect.isCrawler %} I am a crawler. {% endif %}

Also passing user agent as string:

{% if craft.crawlerDetect.isCrawler('Mozilla/5.0 (compatible; Sosospider/2.0; +http://help.soso.com/webspider.htm)') %} I am a crawler. {% endif %}
Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
170
Version
1.0.3
License
MIT
Compatibility
Craft 3, Craft 4
Last release
August 25, 2022
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs