otuatail Posted September 22, 2016 Share Posted September 22, 2016 Hi. I have a website with lots of comedy scripts. I am happy for anyone to grab a script if they want to. The only thing I want is to know is which pages have been visited. I have php code that logs the information. However the full URL to the document is displayed and it could be accessed directly. I have a HTML5 page with the PDF document within a document object. I tried moving the document to a secure folder with .htaccess. The reason is it has to be accessed through the web page only. This doesn’t work. Any solution? Quote Link to comment https://forums.phpfreaks.com/topic/302220-using-htacces-to-secure-documents/ Share on other sites More sharing options...
requinix Posted September 22, 2016 Share Posted September 22, 2016 Use your web server's built in logging mechanisms instead. Don't even need PHP. Quote Link to comment https://forums.phpfreaks.com/topic/302220-using-htacces-to-secure-documents/#findComment-1537708 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.