Page 1 of 1

Download protection in protected page

PostPosted: April 28th, 2011, 9:05 am
by sujaypawar
Thank you very much for this AWESOME plugin.

I'm haveing one issue with Specific Post/Page Access Restrictions. I want to keep some files for download on this restricted page. Is there any way those files will be protected? e.g. If someone pastes the URL of the file location directly in his browser, it should not work.

Re: Download protection in protected page

PostPosted: April 28th, 2011, 11:58 am
by Cristián Lávaque
I'm very glad you're liking s2Member!

You can protect file downloads using s2Member's download options WP Admin -> s2Member -> Download Options. Read the documentation there and search the forum if you're not sure, this has been covered a few times and maybe you'll find quick what you need.

Let me know if that helps. :)

Re: Is there any way we can protect files on specific restri

PostPosted: April 29th, 2011, 6:38 am
by sujaypawar
Here is my question with more details -

Re: Is there any way we can protect "files for download" on specific restricted pages?

I want to keep some files for download on the SPECIFIC RESTRICTED PAGE (not on pages for regular members). Is there any way those files will be protected? e.g. If someone pastes the URL of the file location directly in his browser, it should not work.

I know, s2member provides excellent features for File Download Options, but they are for members, correct?

Is there any way we can protect files on specific restricted pages as well?

Thank you in advance.

Re: Download protection in protected page

PostPosted: April 29th, 2011, 11:22 am
by Cristián Lávaque
I suggest you look at WP Admin -> s2Member -> Download Options -> Advanced Download Restrictions.

I hope that helps. :)

Re: Download protection in protected page

PostPosted: April 29th, 2011, 12:18 pm
by sujaypawar
Thank you for replying! I think I've reached nearer with with some confusion.

I have added the file merchants.txt on FTP location - wp-content/plugins/s2member-files

now should I link that file with link below?

Code: Select all
http://www.domainname.com/?s2member_file_download=merchants.txt&s2member_file_download_key=<?php echo s2member_file_download_key("merchants.txt"); ?>


Would that allow non registered users to download that file as well?

Thanks in advance.

Re: Download protection in protected page

PostPosted: April 29th, 2011, 1:06 pm
by Cristián Lávaque
I'm pretty sure you don't need the account for that kind of download protection. This is from the docuementation of that feature:

A file download `Key` is passed through this parameter, and it tells s2Member to allow the download of this particular file, regardless of Membership Level; and WITHOUT checking any Basic Restrictions, that you may, or may not, have configured above.


Just do a simple test: Configure the file for download as explained there, post the link in a public page in your blog, log out of your account and try to download the file from that link.

Re: Download protection in protected page

PostPosted: April 29th, 2011, 2:45 pm
by sujaypawar
RE: Just do a simple test: Configure the file for download as explained there, post the link in a public page in your blog, log out of your account and try to download the file from that link.

this is what I intend to do, however I'm confused.

1. which folder should I keep the file in?
2. how should I link that file?

if I put the file "merchants.txt" in folder - wp-content/plugins/s2member-files

how should I link it from the public page? could you please give me an example which link should be used?


i.e. http://www.domainname.com/?s2member_fil ... nload_key=<?php echo s2member_file_download_key("merchants.txt"); ?>

Re: Download protection in protected page

PostPosted: April 29th, 2011, 2:47 pm
by sujaypawar
I just need to know how the file "merchants.txt" in folder "wp-content/plugins/s2member-files" should be linked using key parameters?

an example would be great.

Re: Download protection in protected page

PostPosted: April 29th, 2011, 3:07 pm
by Cristián Lávaque
The same documentation has an example too. WP Admin -> s2Member -> Download Options -> Advanced Download Restrictions ;)

Re: Download protection in protected page

PostPosted: April 29th, 2011, 3:09 pm
by Cristián Lávaque
Actually, at the end of its documentation, it also says:

When s2member_file_download_key = a valid Key, it works independently from Member Level Access. That is, a visitor does NOT have to be logged in to receive access; they just need a valid Key. Using this advanced technique, you could extend s2Member's file protection routines, or even combine them with Specific Post/Page Access, and more.