Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
zlmark
Regular
Regular



Joined: Sep 25, 2006
Posts: 57

PostPosted: Thu Dec 27, 2007 5:21 pm Reply with quote

Happy holidays!

How do I protect my downloads from direct access on my hosts server? I want registered users to be able to download but I dont want anyone who gets the URL to be able to access the file directly, bypassing registration/login to the site.
 
View user's profile Send private message
zlmark







PostPosted: Thu Dec 27, 2007 5:28 pm Reply with quote

let me guess NSN downloads.

are we allowed to answer our own questions Wink
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Dec 27, 2007 11:09 pm Reply with quote

Answer away! Laughing

Actually that will not circumvent the root issue but it will make it more difficult. There are various strategies and different implementation techniques that you will find by searching the forums here and Google. If I have the url, NSN will not stop me from accessing it outside of nuke. NSN will only work if I am trying to get the file through your Downloads module.

If you are using Apache, then to lock the files you will need to use Apache directives in .htaccess to protect the access to the folder/files and then meld that into your nuke code. In other words, only allow access through Apache if certain environmental settings are present and make sure the only way they get set is through the registered user's access in nuke.
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Dec 28, 2007 9:18 am Reply with quote

Download leaching was addressed in a long thread almost two years back. Here I discuss the approach if you are using NSN GR Downloads and gotcha addressed the idea up further in the thread:

http://www.ravenphpscripts.com/postp60755.html#60755

Have fun!

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
technocrat
Life Cycles Becoming CPU Cycles



Joined: Jul 07, 2005
Posts: 511

PostPosted: Mon Dec 31, 2007 11:02 am Reply with quote

We have this working 100% in Evolution. If you want I can give you the module to take a look at. The only thing that would be an issue would be caching, everything else should be fine.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! / Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©