Plugin Directory

Changeset 987194


Ignore:
Timestamp:
09/11/2014 11:55:31 AM (11 years ago)
Author:
deepaks
Message:

Messages updated

Location:
hide-real-download-path/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hide-real-download-path/trunk/hide-download-path.php

    r968877 r987194  
    22/*
    33Plugin Name: Hide Downoad Path
    4 Plugin URI: http://xlab.co.in
     4Plugin URI: http://xlab.biz/hide-download-path-of-file-wordpress-plugin/
    55Description: This plugin help you to hide download path of files on your website. You can allow download of files without showing exact download path of file on your server and make if more secure. It also allow to restrict hot linking of files.
    6 Version: 1.5
     6Version: 1.6
    77Author: Deepak Sihag
    8 Author URI: http://xlab.co.in/hide-download-path-of-file-wordpress-plugin/
     8Author URI: http://xlab.biz/hide-download-path-of-file-wordpress-plugin/
    99License: GPLv2
    1010*/
     
    142142            <li>Create a directory on your server</li>
    143143            <li>'Base Path' is root path of your download directory where all files are hosted. Root path on your server is <code><?php echo get_home_path(); ?></code> followed by path to directory created in step 1<br />
    144             For example if your WordPress installation is in public_html directory and your have created directory named 'files' in 'wp-content' then your base path is <code><?php echo get_home_path(); ?>/wp-content/files/</code></li>
     144            For example if your WordPress installation is in public_html directory and your have created directory named 'files' in 'wp-content' then your base path is <code><?php echo WP_CONTENT_DIR; ?>/files/</code></li>
    145145            <li>If you want to restrict download from any specific domain only, enter domain name (without http://www) in 'Allowed Referred' else leave it blank.<br />If you add <code><?php echo $_SERVER['SERVER_NAME']; ?></code> in 'Allowed Referred' download will be only allowed from this website.</li>
    146146            <li>Uncheck 'Log downloads' if you don't want to keep a track of files downloaded. I would recommend to kep it checked, this will help you to track download of your files.</li>
     
    272272           $pos = strpos($referredBy, $parent);
    273273            if ($pos === false) {
    274                die("Internal server error. Please contact system administrator.");
     274               die("Direct link to download file is disabled from your url.");
    275275           }
    276276           else
  • hide-real-download-path/trunk/readme.txt

    r944985 r987194  
    22Contributors: deepaks
    33Donate link: http://xlab.co.in/hide-download-path-of-file-wordpress-plugin/
    4 Tags: hide real doanload path, hide download path, secure file, hot linking
     4Tags: hide real download path, hide download path, secure file, hot linking, disable direct download
    55Requires at least: 3.5
    6 Tested up to: 3.9
     6Tested up to: 4.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313
    14 This plugin allow you to hide Real path of files hosted on your server for download and help to keep your files/website more secure.
     14This plugin allow you to hide real path of files hosted on your server for download and help to keep your files/website more secure. Also maintain log of your downloads on server in a log file as well restrict hot linking.
    1515
    1616<strong>You can:</strong>
    17 - allow or restrict hotlink to your files from other website.
    18 - restrict download only from link on your website
     17- allow or restrict hotlink (direct download) of your files from other website/external links.
     18- restrict 'download only' from link on your website
    1919- view log of individual download
    2020
     
    3030== Installation ==
    3131
    32 1. Upload your website and activate
    33 2. Go to Settings -> Hide Download Link
    34 3. Enter Root path of your download directory where all files are hosted. (it should be something like /home/public_html/yourdirectoryname depending on your host)
    35 4. Enter referred (if wish to restrict hot linking)
     321. Unzip plugin in `/wp-content/plugins/` directory
     332. Activate the plugin through the 'Plugins' menu in WordPress
     342. Go to Settings -> 'Hide Download Link'
     353. Enter Root path of your download directory where all files are hosted. (it should be something as /home/public_html/yourdirectoryname depending on your host)
     364. Enter referred (if you want to restrict direct download using link from other wesbites)
    36375. Save and you are done !!
    3738
    38 Now create a page and enter shortcode [download_page]. You are files are secure now!!
     39Now create a page and enter shortcode [download_page]. You are files are now secure!
    3940
    4041Download link of your all files will be http://YourSiteName.com/YourPageName/?f=YourFileName.extension
     
    4344If you created page with name 'Download' and added shortcode in it, Path for your download file (assuming its name is test.zip) will be:
    4445http://yoursitename.com/download/?f=test.zip
     46
     47== Frequently Asked Questions ==
     48
     49= How can I view download log? =
     50
     51A file 'downloads.log' is created on root of your server, open it in text editor and you can view details Time/Date/IP address and Downloaded file name in it.
     52
     53= what should I enter in 'Allowed Referred'? =
     54
     55'Allowed Referred' is not mandatory but if you want to allow download of your files from specific websites only then enter name of site in allowed referral textbox.
     56For example if you want to allow download of files from your website only, enter your site name (without http://www.) in allowed referral. Now users will be only able to download file by clicking link on your website.
     57
     58= Where do I report bugs? =
     59
     60In the WordPress forum (http://wordpress.org/support/plugin/hide-real-download-path) or contact using form <a href='http://xlab.biz/get-in-touch/" target="_blank">here</a>
Note: See TracChangeset for help on using the changeset viewer.