-
File Protection in DAP
If you protect files outside of /wp-content/uploads folder in dap, you will need additional .htaccess entries in order for the content to be protected as described here:
http://www.digitalaccesspass.com/doc...ar-site-files/
DAP looks for files under /wp-content/uploads folder by default for content protection. We recommend that you create a sub-folder under
/wp-content/uploads (for ex - mp3 or downloads) and store the files there (wp-content/uploads/downloads) instead of saving it directly under a separate folder outside of wp-content/uploads.
DAP can protect files outside of /wp-content/uploads folder but it's more efficient to store under /wp-content/uploads because dap looks into that folder for protected files by default.
Anything outside of that folder will result in more content protection checks when a request is made that can affect performance as you protect a big number of files outside of /wp-content/uploads folder.
Say you protected this link in dap contentresponder section but its not getting protected in dap - http://YOURSITE.com/mp3/myfile.mp3
Make sure to add this towards the bottom of .htaccess at the root of your site.
#Paste this at the very end of your .htaccess file
#in your web site's root folder
<IfModule mod_rewrite.c>
#dap
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !dapclient.php
RewriteCond %{REQUEST_URI} !^/dap/
RewriteCond %{REQUEST_FILENAME} !(.*)(\.php|\.css|\.js|\.jpg|\.gif|\.png|\.txt)$
RewriteRule (.*) /dap/client/website/dapclient.php?dapref=/$1&plug=wp&%{QUERY_STRING} [L]
</IfModule>
PHP File Protection
====================
DAP does not protect .php files by default because dap and wordpress scripts are in .php and if you do not protect it correctly, it might break wordpress / dap functionality.
Say you want to protect .php files in /myphpfiles folder, then pls add these lines towards the bottom of your .htaccess file (see the reference to /myphpfiles in the rules below) :
<IfModule mod_rewrite.c>
#dap
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !dapclient.php
RewriteCond %{REQUEST_URI} !^/dap/
RewriteCond %{REQUEST_URI} ^/myphpfiles/
RewriteCond %{REQUEST_FILENAME} (.*)(.php)$
RewriteRule (.*) /dap/client/website/dapclient.php?dapref=/$1&plug=wp&%{QUERY_STRING} [L]
</IfModule>
This way dap will look for protected php files only in a specific folder (in this example, the folder is myphpfiles) rather than look for it in any other directories.
Note: You need to protect the FULL URL of the file (for ex.. http://yoursite.com/mp3/myfile.mp) in dap content protection section in addition to making the .htaccess updates. DAP will ONLY protect content that you drip/protect in contentresponder section in dap.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules