Title: Secure Link for Nginx
Author: M Hansen Tanjung
Published: <strong>November 21, 2018</strong>
Last modified: November 21, 2018

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/secure-link-nginx.svg)

# Secure Link for Nginx

 By [M Hansen Tanjung](https://profiles.wordpress.org/mhansent/)

[Download](https://downloads.wordpress.org/plugin/secure-link-nginx.20181121.zip)

 * [Details](https://frp.wordpress.org/plugins/secure-link-nginx/#description)
 * [Reviews](https://frp.wordpress.org/plugins/secure-link-nginx/#reviews)
 *  [Installation](https://frp.wordpress.org/plugins/secure-link-nginx/#installation)
 * [Development](https://frp.wordpress.org/plugins/secure-link-nginx/#developers)

 [Support](https://wordpress.org/support/plugin/secure-link-nginx/)

## Description

[Secure Link for Nginx](https://gitlab.com/mhansent/secure-link-nginx) is a
 shortcode
plugin for WordPress to embed hash code for link that want to be protected. Protectition
based on client IP and user agent. This plugin must be use when nginx web server
already configured with [secure link module](http://nginx.org/en/docs/http/ngx_http_secure_link_module.html)

#### Using shortcode

Shortcode can be use with parameter or without it. Suppose you want to protect
 
img.png file under /secure folder, using with parameter: `<img class="" src="/secure/
img.png[sln_create slfile='/secure/img.png']" />` using it whitout parameter: `<
img class="" src="[sln_create]/secure/img.png[/sln_create]" />`

## Installation

We use this asumption when configuring nginx and using this plugin at wordpress

post: – Folder that want to secure is /secure under wordpress folder

 1. Upload the plugin files to the `/wp-content/plugins/secure-link-nginx`
     directory,
    or install this Secure Link fo Nginx plugin through the WordPress plugins screen
    directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Configure nginx as a below

#### Nginx configuration

Under your wordpress configuration at nginx, add this configuration:

    ```
    `
    ```

location /secure {
 secure_link $arg_sln; secure_link_md5 “$uri$remote_addr$http_user_agent”;

    ```
    if ($secure_link = "") { return 403; }
    if ($secure_link = "0") { return 410; }
    ```

}
 `

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Secure Link for Nginx” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ M Hansen Tanjung ](https://profiles.wordpress.org/mhansent/)

[Translate “Secure Link for Nginx” into your language.](https://translate.wordpress.org/projects/wp-plugins/secure-link-nginx)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/secure-link-nginx/),
check out the [SVN repository](https://plugins.svn.wordpress.org/secure-link-nginx/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/secure-link-nginx/)
by [RSS](https://plugins.trac.wordpress.org/log/secure-link-nginx/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **20181120**
 *  Last updated **7 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **4.9.29**
 *  PHP version ** 5.2.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/secure-link-nginx/)
 * Tags
 * [link](https://frp.wordpress.org/plugins/tags/link/)[shortcode](https://frp.wordpress.org/plugins/tags/shortcode/)
 *  [Advanced View](https://frp.wordpress.org/plugins/secure-link-nginx/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/secure-link-nginx/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/secure-link-nginx/reviews/)

## Contributors

 *   [ M Hansen Tanjung ](https://profiles.wordpress.org/mhansent/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/secure-link-nginx/)