vulcandigital/silverstripe-securelinkparser 问题修复 & 功能扩展

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

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

vulcandigital/silverstripe-securelinkparser

Composer 安装命令:

composer require vulcandigital/silverstripe-securelinkparser

包简介

Allows you to notify your viewers that they are being redirected to an external link

README 文档

README

This module provides you with a page and the functionality to redirect viewers to user defined links to:

TL;DR Will convert "https://google.com" into "https://yourdomain.com/external-links?url=https://google.com"

What's it do?

  • Warns the viewer that they're about to be redirected to external link
  • Give the user the ability to cancel the redirection.
  • If they cancel then provide them with an option to continue to the link anyway in case they changed their mind.
  • Track how many hits an external URL has had from your domain.
  • Prevents potentially breaking SSL due to insecure links

Requirements

  • silverstripe/framework: ^4
  • silverstripe/cms: ^4

Installation

composer install vulcandigital/silverstripe-securelinkparser

Usage

An extension is packaged with this module and gives you access to the $SecureUserDefinedLink method from within any PageController

<a href='$SecureUserDefinedLink($CustomLink)'>$CustomLinkTitle</a>

or

$link = \Vulcan\SecureLinkParser\SecureLinkParser::getSecureLink($this->CustomLink);

Configuration

The only configuration variable available is create_default_page, which will create the redirection page automatically upon dev/build

Vulcan\SecureLinkParser\Pages\SecureLinkParserPage:
    create_default_page: true

This is disabled by default, so you will need to create the page yourself anywhere in the site tree.

License

BSD 3-Clause © Vulcan Digital Ltd

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-01-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固