doudong8713 2013-07-28 15:32
浏览 17
已采纳

只创建我的网站可以读取的图像文件格式

I'm considering writing my own image file format for my site. Why? Well, the site is going to include comics that only subscribers can read, and I want to make it a little difficult for someone to drag and drop the image and spread it around. Is there a better way of doing this, or is this a way I should investigate further? If so, how would one go about doing this?

I've read there could be a way in PHP with doing this, but unsure how to go about it if this is a good solution.

  • 写回答

1条回答 默认 最新

  • dsqa6272 2013-07-28 15:44
    关注

    It's impossible to completely prevent your images from being stolen, but you can make the process harder.

    The following method will make the real image unreachable unless checked from the source. You can use the original image as a background & put a transparent-blank file over it that matches the size of the real image.

    Example:

    <div id="image1" style="background-image: url(originalImage.jpg);">
        <img src="blank.gif" height="250px" width="300px">
    </div>
    

    So, when the image is right-clicked, it will be the blank.gif that can be reached.

    View this post for some other ideas.

    An alternative solution would be to use PHP's GD Library. Using this method, you can add a watermark on all your images.

    Hope this helps!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址
  • ¥15 elmos524.33 eeprom的读写问题
  • ¥15 用ADS设计一款的射频功率放大器
  • ¥15 怎么求交点连线的理论解?