Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

That protects the pages, but theres still a security hole here. What about the images displayed within the pages?

0
Posted

That protects the pages, but theres still a security hole here. What about the images displayed within the pages?

0

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 is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123