Achieve 301 Redirect, picture anti-theft function

Source: Internet
Author: User
  1. Repeatlimit 32

    #已配置了伪静态的可以删除上面三行代码

    #防盗链设置:

    Rewritecond Host: (. +)

    Rewritecond Referer: (?! http://(?:*. smlwh.com| (. *). smlwh.com|*.baidu.com| (. *). baidu.com|google.com| (. *). google.com). *

    Rewriterule. *. (?: Jpg|jpeg|gif|png|bmp|rar|zip|exe)/fangdao.gif [I,o,n]

    Explanatory notes:

    Rewritecond Referer: Fill in your website that allows you to connect your images, with each domain name "|" Separated

    (?: Jpg|jpeg|gif|png|bmp|rar|zip|exe): These are the extensions you need for the anti-theft chain file, with each extension "|" Separated

    Fangdao.gif: Someone else hotlinking your picture will show this picture

    Set it up and upload the Httpd.ini to the root of the website.

    Fangdao.gif is also placed in the root directory

  • Note: Replace your website with your own.

Achieve 301 Redirect, picture anti-theft function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.