承接 itscoding/serve-secret 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

itscoding/serve-secret

Composer 安装命令:

composer require itscoding/serve-secret

包简介

Serve password protected files

README 文档

README

Codacy Badge

This Plugin is Free, but i'm happy if you want to Support my work!

Spend (go to PayPal)

QRCode (go to PayPal)

Serve files that are not Stored in public accessible Directories. e.g for Password-Protected Areas. File links could and should not be shared!

The benefit of this is vs not having public Url's is you have a FilePreview in the CP even, the Files are not Public!

The file links are decoded to hide the path from the user and to make the link only accessible for the current Session, so that's the reason why it's not possible to share the links!

It's not meant to store sensitive data that possibly not should be leaked. But data that should not be found by SearchEngines or something like a ranking in a pdf file etc.

The links created by the plugin cannot be shared!

Requirements

This plugin requires Craft CMS 4.0.0 or later.

Contribute to the Project

if you want to help with this project, read how to contribute

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require itscoding/serve-secret
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for ServeSecret.

Using ServeSecret

Screenshot

  1. Crate a volume in craft that starts with @secretStorage.

  2. add storage/secretStorage to the gitignore dire if you use the @secretStorage alias.

  3. Use it in your templates --> put your asset as a method argument!

# the second parameter is optional, if is set to false, the file will download instead of open in the browser,the default value is true
<a href="{{ secretFile(entry.files.first(),false) }}">{{ entry.files.first().title }}</a>

{% for files in entry.files %}
       <a href="{{ secretFile(file,true) }}">{{ file.title }}</a>
{% endfor %}

ServeSecret Roadmap

Some things to do, and ideas for potential features:

  • Create sharable fileLinks

Brought to you by Simon Müller

统计信息

  • 总下载量: 983
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固