That protects the pages, but theres still a security hole here. What about the images displayed within the pages?
img elements and fetch the images directly from files on the website, then it will be possible for users to copy and paste those URLs and give them out to others who do not have accounts on the system. Worse, clever thieves can and will use special tools to automatically fetch consecutively numbered image files. If image theft is an issue for your site, you can address this problem by delivering the images with PHP code as well. Nowhere is it written that a PHP “page” must deliver HTML! It can deliver an image just as easily. Here’s code to deliver an image directly from PHP after making sure the user has logged in: Save this file as image.ph
Related Questions
- What are the sizes for all the images an artist should use for their artist pages? And what image types are ok to use?
- That protects the pages, but theres still a security hole here. What about the images displayed within the pages?
- Can I change or personalize the banners and images provided by Visec Security Software?