2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-securelinkparser

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

image

vulcandigital/silverstripe-securelinkparser

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

  • Thursday, January 11, 2018
  • by vulcandigital
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

silverstripe-securelinkparser

This module provides you with a page and the functionality to redirect viewers to user defined links to:, (*1)

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

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, (*3)

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

or, (*4)

$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, (*5)

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., (*6)

License

BSD 3-Clause © Vulcan Digital Ltd, (*7)

The Versions

11/01 2018

dev-master

9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

11/01 2018

1.0

1.0.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires