PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

URI Files Not Protected

s2Member Plugin. A Membership plugin for WordPress®.

URI Files Not Protected

Postby mikesmind » June 6th, 2011, 7:11 pm

I have a URI setup to restrict some documents to Level 0 access.

Here is an example:
/TestPath/

When logged out, I can access resources in the subfolders of the TestPath folder. I don't have any documents in the TestPath folder.

Here's an example (not a real URL):

http://testwebsite.com/TestPath/Contact ... 20List.pdf

How do I diagnose or fix this problem?

Thanks, Mike
User avatar
mikesmind
Registered User
Registered User
 
Posts: 4
Joined: May 10, 2011

Re: URI Files Not Protected

Postby Cristián Lávaque » June 6th, 2011, 7:45 pm

The URI Restriction will work with things under WordPress' control. If that's a directory in your server that doesn't have to do with WordPress, then s2Member won't manage the access to it.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: URI Files Not Protected

Postby mikesmind » June 7th, 2011, 6:24 am

How do I secure resources that are downloaded, if someone figures out the path?
User avatar
mikesmind
Registered User
Registered User
 
Posts: 4
Joined: May 10, 2011

Re: URI Files Not Protected

Postby mannclann » June 7th, 2011, 7:44 am

Use an .htaccess file or a simple blank index.htm file so that nothing in the directory can be seen
User avatar
mannclann
Registered User
Registered User
 
Posts: 6
Joined: August 19, 2010

Re: URI Files Not Protected

Postby mikesmind » June 7th, 2011, 8:26 am

If I use a .htaccess file, will that allow access if the link is clicked on in WordPress, but not allow access if the actual URL is used in browser?

If I use a blank index.htm file, will that still allow access for the actual full path url used in the browser?

Thanks, Mike
User avatar
mikesmind
Registered User
Registered User
 
Posts: 4
Joined: May 10, 2011

Re: URI Files Not Protected

Postby mannclann » June 7th, 2011, 8:59 am

If I use a .htaccess file, will that allow access if the link is clicked on in WordPress, but not allow access if the actual URL is used in browser?

I am not an expert with htaccess, I always have to research to get it right. I believe that the only way you could do what you want is with some kind of script (pearl, cgi).

If I use a blank index.htm file, will that still allow access for the actual full path url used in the browser?

If someone knows the exact url including filename then they could access the file

Maybe the easiest way for you is to use the advanced download feature (if you are using the pro version) and then just put your directory within the wordpress structure.

Rick
User avatar
mannclann
Registered User
Registered User
 
Posts: 6
Joined: August 19, 2010

Re: URI Files Not Protected

Postby Cristián Lávaque » June 7th, 2011, 12:09 pm

You can use s2Member's Download Options to protect files you place in the directory s2Member uses for this. The documentation is found here WP Admin -> s2Member -> Download Options.

mannclann wrote:use the advanced download feature (if you are using the pro version)


s2Member's Advanced Download Restriction is available in s2Member Free.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: URI Files Not Protected

Postby mikesmind » June 18th, 2011, 2:55 pm

Thanks Cristián! The directory that Download Options uses works great.

Is there a way to have sub-directories in this directory to better organize content? I tested a couple of different ways but couldn't get a sub-directory to work.

Thanks, Mike
User avatar
mikesmind
Registered User
Registered User
 
Posts: 4
Joined: May 10, 2011

Re: URI Files Not Protected

Postby Cristián Lávaque » June 18th, 2011, 11:05 pm

I think you can use subdirectories, just remember to add them to the file path in the download link. I know that there are special subdirs for level and custom capability restrictions, but you can try other ones and see if they work too. WP Admin -> s2Member -> API / Scripting / Custom Capability & Member Level Files

In case you haven't watched it yet, here's a video on s2Member's download protection http://www.s2member.com/file-download-options-video/
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron