PHPackages                             clearbold/fixmealink - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. clearbold/fixmealink

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

clearbold/fixmealink
====================

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

1.0.1(7y ago)151.4k1[1 issues](https://github.com/clearbold/fixmealink/issues)MITPHP

Since Aug 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/clearbold/fixmealink)[ Packagist](https://packagist.org/packages/clearbold/fixmealink)[ Docs](https://github.com/clearbold/fixmealink)[ RSS](/packages/clearbold-fixmealink/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Fix Me a Link for Craft 3
=========================

[](#fix-me-a-link-for-craft-3)

A Craft plugin with link utility functions.

Link Obfuscator for Assets Files
--------------------------------

[](#link-obfuscator-for-assets-files)

Using the following Twig filter in your template:

```
{% for asset in entry.assets %}
    {{ asset.extension }}
{% 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:

```
