Jump to content

Show hotlink protected files to logged in users.


bunion

Recommended Posts

Hi i have now finished coding a facility which allows the administrator to create password protected private areas on the site. He can upload any type of file to their area. They log in via a php script and a mysql database of users. I have enabled hotlink protection on the control panel to stop outsiders accessing these private files. However once the user logs in i want them to be able to download and view the files. Even if put the file in an iframe on the page, hotlink protection stops it showing or the save as dialogue coming up.

 

I used the simple private user area script template below:

http://www.xentrik.net/php/signup/complete.php

 

Any ideas on how to allow access to these files for registered users?

 

Thankyou

 

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.