Mô tả
Secure Link for 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
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]" />
Cài đặt
We use this asumption when configuring nginx and using this plugin at wordpress
post:
– Folder that want to secure is /secure under wordpress folder
- 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. - Activate the plugin through the ‘Plugins’ screen in WordPress
- 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; }
}
`
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“Secure Link for Nginx” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Secure Link for Nginx” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.