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 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘