clearbold/fixmealink 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

clearbold/fixmealink

Composer 安装命令:

composer require clearbold/fixmealink

包简介

Fix Me a Link is a Craft plugin with link utility functions.

README 文档

README

A Craft plugin with link utility functions.

Link Obfuscator for Assets Files

Using the following Twig filter in your template:

{% for asset in entry.assets %}
    <a href="{{ asset|obfuscateAssetUrl }}">{{ asset.extension }}</a>
{% endfor %}

will insert a database record with a unique hash for that URL, and provide a Craft URL with that hash. It will output the binary file under that URL to obfuscate its true location.

Obfuscated URLs expire in 15 minutes so they can't be shared.

We're using this on a community site for logged-in members with PDF files stored on Amazon S3, where we don't want those URLs getting out in the wild.

There's also a filter for:

<a href="{{ entry.url|obfuscate }}"

which will also store a link and a hash, but it currently just redirects to the URL when clicked.

History

Quick start to get this working for Assets on a client's site. More to come!

统计信息

  • 总下载量: 1.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固