Jump to content

Prevent Unauthorised Users Direct Access To Files


sylvest

Recommended Posts

I run a web site on TCH. It's basically PHP. A section of this web site needs to be secure. Within this secure section I don't want people to be able to directly access any JPG, TXT or other data files just by typing their full URL. It must not be possible for unauthorised users to access any files within the secure section (not JPG files, TXT files or any other sort of data file).

 

I don't want to transmit passwords in clear text.

 

Within the PHP code I need to be able to detect who the logged in user is.

 

I would prefer the authorised users and their usernames and passwords (encrypted) to be stored in my MySQL database.

 

What is the best/easiest way of doing this?

 

Thanks - Rowan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...