wildbit/craft3-donottrack
最新稳定版本:1.0.0
Composer 安装命令:
composer require wildbit/craft3-donottrack
包简介
Craft 3 plugin for respecting Do Not Track headers sent by browsers.
README 文档
README
Helpers for respecting Do Not Track headers sent by browsers.
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Get the Craft 2 version.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require wildbit/craft3-donottrack -
In the Control Panel, go to Settings → Plugins and click the “Install” button for Do Not Track.
Using Do Not Track
You can use the doNotTrack.isEnabled variable to check whether DNT is enabled in the user’s browser from your twig templates.
{% if craft.doNotTrack.isEnabled %}
Do Not Track is enabled.
{% endif %}
Brought to you by Wildbit
统计信息
- 总下载量: 4.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-29