Changeset 987194
- Timestamp:
- 09/11/2014 11:55:31 AM (11 years ago)
- Location:
- hide-real-download-path/trunk
- Files:
-
- 2 edited
-
hide-download-path.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hide-real-download-path/trunk/hide-download-path.php
r968877 r987194 2 2 /* 3 3 Plugin Name: Hide Downoad Path 4 Plugin URI: http://xlab. co.in4 Plugin URI: http://xlab.biz/hide-download-path-of-file-wordpress-plugin/ 5 5 Description: 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. 56 Version: 1.6 7 7 Author: Deepak Sihag 8 Author URI: http://xlab. co.in/hide-download-path-of-file-wordpress-plugin/8 Author URI: http://xlab.biz/hide-download-path-of-file-wordpress-plugin/ 9 9 License: GPLv2 10 10 */ … … 142 142 <li>Create a directory on your server</li> 143 143 <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> 145 145 <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> 146 146 <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> … … 272 272 $pos = strpos($referredBy, $parent); 273 273 if ($pos === false) { 274 die(" Internal server error. Please contact system administrator.");274 die("Direct link to download file is disabled from your url."); 275 275 } 276 276 else -
hide-real-download-path/trunk/readme.txt
r944985 r987194 2 2 Contributors: deepaks 3 3 Donate link: http://xlab.co.in/hide-download-path-of-file-wordpress-plugin/ 4 Tags: hide real do anload path, hide download path, secure file, hot linking4 Tags: hide real download path, hide download path, secure file, hot linking, disable direct download 5 5 Requires at least: 3.5 6 Tested up to: 3.96 Tested up to: 4.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 == Description == 13 13 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.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. Also maintain log of your downloads on server in a log file as well restrict hot linking. 15 15 16 16 <strong>You can:</strong> 17 - allow or restrict hotlink to your files from other website.18 - restrict download onlyfrom link on your website17 - allow or restrict hotlink (direct download) of your files from other website/external links. 18 - restrict 'download only' from link on your website 19 19 - view log of individual download 20 20 … … 30 30 == Installation == 31 31 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) 32 1. Unzip plugin in `/wp-content/plugins/` directory 33 2. Activate the plugin through the 'Plugins' menu in WordPress 34 2. Go to Settings -> 'Hide Download Link' 35 3. 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) 36 4. Enter referred (if you want to restrict direct download using link from other wesbites) 36 37 5. Save and you are done !! 37 38 38 Now create a page and enter shortcode [download_page]. You are files are secure now!!39 Now create a page and enter shortcode [download_page]. You are files are now secure! 39 40 40 41 Download link of your all files will be http://YourSiteName.com/YourPageName/?f=YourFileName.extension … … 43 44 If you created page with name 'Download' and added shortcode in it, Path for your download file (assuming its name is test.zip) will be: 44 45 http://yoursitename.com/download/?f=test.zip 46 47 == Frequently Asked Questions == 48 49 = How can I view download log? = 50 51 A 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. 56 For 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 60 In 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.