Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > ColdFusion > Re: cf gallery ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 1667 of 1699
Post > Topic >>

Re: cf gallery - member section

by ll <barn104_1999@[EMAIL PROTECTED] > May 25, 2007 at 02:54 PM

On May 24, 6:31 pm, Andy Waschick <a...@[EMAIL PROTECTED]
> wrote:
> On 2007-05-14 11:10:44 -0500, ll <barn104_1...@[EMAIL PROTECTED]
> said:
>
> > I am looking for a way to integrate a member section into my cf photo
> > gallery.  I am looking at having a general directory that has its own
> > images directory (for the general public) and a member directory under
> > that, which is protected and contains the images that only members can
> > access.
> > I wonder if there is a better way, though, in which I can store all
> > images in the same directory, possibly all under the protected area?
> > I appreciate any ideas.
>
> I set up a protected file database for a client a few years ago, and
> gave this issue of files-at-a-premium some thought.  I suppose there
> are a couple of points to think about, which as we go farther down the
> list lets us indulge in more paranoid fantasies about how much somebody
> might try to get at your precious images.
>
> The problem with any web-accessible directory is that it's
> web-accessible.  That's sort of the whole point.  So, if you want to
> prevent somebody from getting those files tem****arily, you have to put
> them somewhere where they cannot get at them.
>
> Security through obscurity is probably enough of a challenge for the
> typical functionally-retarded web audience member out there... I mean,
> nobody knows what the names of the files in the galleries are to begin
> with except your database, so if you just set a field to mark whether a
> file is premium content or not, you can probably get something that
> gives the appearance of security without really having to go the whole
> distance.
>
> My client, though, was also concerned about people downloading a
> sensitive do***ent and then the link they clicked on to get the
> do***ent falling into unauthorized hands.  Just because they had to
> enter a password to get the link does not mean the link does not exist
> for everybody else in the world.  The solution to this problem was the
> Karate Kid defense-- you know the one, where Mister Miyagi says "the
> best defense is to no be there".
>
> I wrote a download link generating CF module that pulled the path of
> the file-- stored in a directory OUTSIDE the public web root
> directory-- and then mangled the filename with some random characters
> at the end.  It copied the source file and renamed it in a public
> directory, gave the user a link, and then set a CF scheduler event to
> fire off in 10 minutes that called a module that would delete the file.
>  The user could then safely get the file and shortly after they were
> finished, the link they clicked would magically turn into a 404 error.
>
> The latter idea might be a little extreme, but the concept is the same
> in that if your users don't know what to ask for, they can't have it,
> even if it's living in a public directory on your server.
>
> Hope this gives you some ideas.
>
> Andy


Andy,
Many thanks for your comprehensive thoughts and approach to this!
They will definitely go 'into the mix' as I look at my approach.
Would the link from your main page to the download generating module
always remain the same (authentication, etc?)
Regards,
Louis
 




 3 Posts in Topic:
cf gallery - member section
ll <barn104_1999@[EMAI  2007-05-14 09:10:44 
Re: cf gallery - member section
Andy Waschick <andy@[E  2007-05-24 23:31:07 
Re: cf gallery - member section
ll <barn104_1999@[EMAI  2007-05-25 14:54:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 12:52:22 CDT 2008.