{"id":94259,"date":"2018-11-21T05:19:57","date_gmt":"2018-11-21T05:19:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/nginx-secure-link\/"},"modified":"2018-11-21T07:00:35","modified_gmt":"2018-11-21T07:00:35","slug":"secure-link-nginx","status":"publish","type":"plugin","link":"https:\/\/tah.wordpress.org\/plugins\/secure-link-nginx\/","author":8204607,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"20181120","stable_tag":"20181121","tested":"4.9.29","requires":"4.6","requires_php":"5.2.4","requires_plugins":"","header_name":"Secure Link for Nginx","header_author":"mht - DNAV PIP","header_description":"Shortcode to embed Nginx secure link","assets_banners_color":"","last_updated":"2018-11-21 07:00:35","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/gitlab.com\/mhansent\/secure-link-nginx","header_author_uri":"https:\/\/gitlab.com\/mhansent","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1739,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["20181120","20181121"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[537,80],"plugin_category":[43],"plugin_contributors":[164602],"plugin_business_model":[],"class_list":["post-94259","plugin","type-plugin","status-publish","hentry","plugin_tags-link","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-mhansent","plugin_committers-mhansent"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/secure-link-nginx.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><a href=\"https:\/\/gitlab.com\/mhansent\/secure-link-nginx\">Secure Link for Nginx<\/a> is a\nshortcode plugin for Wordpress to embed hash code for link that want to be\nprotected. Protectition based on client IP and user agent. This plugin must be\nuse when nginx web server already configured with\n<a href=\"http:\/\/nginx.org\/en\/docs\/http\/ngx_http_secure_link_module.html\">secure link module<\/a><\/p>\n\n<h4>Using shortcode<\/h4>\n\n<p>Shortcode can be use with parameter or without it. Suppose you want to protect\nimg.png file under \/secure folder, using with parameter:\n    <code>&lt;img class=\"\" src=\"\/secure\/img.png[sln_create slfile='\/secure\/img.png']\" \/&gt;<\/code>\nusing it whitout parameter:\n    <code>&lt;img class=\"\" src=\"[sln_create]\/secure\/img.png[\/sln_create]\" \/&gt;<\/code><\/p>\n\n<!--section=installation-->\n<p>We use this asumption when configuring nginx and using this plugin at wordpress\npost:\n- Folder that want to secure is \/secure under wordpress folder<\/p>\n\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/secure-link-nginx<\/code>\ndirectory, or install this Secure Link fo Nginx plugin through the WordPress\nplugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Configure nginx as a below<\/li>\n<\/ol>\n\n<h4>Nginx configuration<\/h4>\n\n<p>Under your wordpress configuration at nginx, add this configuration:<\/p>\n\n<pre><code>`\n<\/code><\/pre>\n\n<p>location \/secure {\n    secure_link $arg_sln;\n    secure_link_md5 \"$uri$remote_addr$http_user_agent\";<\/p>\n\n<pre><code>if ($secure_link = \"\") { return 403; }\nif ($secure_link = \"0\") { return 410; }\n<\/code><\/pre>\n\n<p>}\n    `<\/p>","raw_excerpt":"Secure Link for Nginx is a shortcode plugin for Wordpress to embed hash code for links\/files that want to be protected","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/94259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=94259"}],"author":[{"embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mhansent"}],"wp:attachment":[{"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=94259"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=94259"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=94259"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=94259"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=94259"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tah.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=94259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}