图像文件免于跟踪

图像文件免于跟踪

本文介绍了保护html / php /图像文件免于跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法保护你的文件(php文件/图像文件)不受跟踪? (TeleportPRO,HTTrack等)

感谢您的时间!

解决方案

HTTrack通过您的网站进行搜索,然后下载并查看它找到的所有链接。因此,使用浏览器的用户将看到的是该程序将会看到的内容。



PHP是服务器端,所有客户端都会获得您生产的html,所以您不需要不得不担心任何人通过HTTrack等程序获取源代码。获得源代码的唯一方法是让攻击者通过系统本身直接访问ftp /文件...



并且随着您的用户将能够看到你的图像该程序将下载图像,但这将如何影响你?如果您销售的图像,您可以通过.php文件访问它们,检查当前登录的用户是否购买了图像,然后才显示它。但对于作为布局/模板一部分的图像,每个浏览器等都下载它是很正常的。这些程序只是下载它们用于本地查看。


Is there any way to protect your files(php files/images files) from tracking ?? (TeleportPRO, HTTrack, etc)

-Thanks for your time!

解决方案

HTTrack crawls through your website then downloads and follows all the links it finds. So anything that a user using a browser will see is what this program will see.

PHP is server side so all the client gets is the html your produce so you do not have to worry about anyone getting your source code with a program like HTTrack. The only way to get your source would be for a attacker to get direct access to the files with ftp/on the system itself...

And as your users will be able to see your images the program will download the images but how would this affect you? If you are selling the images, you could access them through a .php file that checks if the currently logged-in user has purchased the image and then and only then show it. But for images that are part of your layout/template, it is quite normal for everyone browser etc. to download it. Those programs just download them for local viewing.

这篇关于保护html / php /图像文件免于跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 03:02