Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Protect a demo download directory


goosie

Recommended Posts

Hi,

I want give users be able to download some demo stuff, though they must login first.

 

So I have created a directory /catalog/demos

And uploaded some .zip file in this directory.

 

How can I protect this directory so only registerd users are able to download out of this directory?

 

I'm puzzling with .htaccess but can't find the right trigger.

 

Any help appreciated,

 

Perry

Link to comment
Share on other sites

Have you ever read this.

http://httpd.apache.org/docs-2.0/howto/htaccess.html

And this is a real file's content .

AuthName PrivateFiles 
AuthType Basic 
AuthUserFile c:/AppServ/users/passwords
require user admin

You need to create the password file and edit this .htaccess. Many help in google and Good luck. ;)

Fan of OSC system.................

Comming From China.............

Link to comment
Share on other sites

Hi Perry,

 

Hi,

I want give users be able to download some demo stuff, though they must login first.

 

So  I have created a directory /catalog/demos

And uploaded some .zip file in this directory.

 

How can I protect this directory so only registerd users are able to download out of this directory?

 

I'm puzzling with .htaccess but can't find the right trigger.

 

Any help appreciated,

 

Perry

 

in case you are using MS2 i would consider installing the Downloads Controller v5.3 for MS 2.2 (originally from Linda McGrath ) which you can find

here.

 

It allows you to offer Downloads on your page which are only downloadable after registering and logging in. If you offer them for free (i.e. price set to 0.00), your users can download them without paying anything (payment module is included as well).

 

In my opinion, this contribution is a must have if you want to offer anything for d/l (either for selling or available for free).

 

Regards,

Marcus

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...