Three strokes two-way resolution picture hotlinking can't see the problem _ Related tips

Source: Internet
Author: User
Almost all of the pictures anti-theft chain function, are through the judgement of referer to achieve. The usual rule is that if referer is the URL of the domain of the site or the referer is empty, the picture is normally output, otherwise an error picture is given.

Knowing the principle, the problem is solved-to forge a referer. For example, the request of a NetEase photo album, always camouflage to send NetEase album Referer, regardless of the actual referer.

This article describes a way to view the picture normally when you encounter a picture that prompts hotlinking in the three big browsers of Firefox,opera,ie.

(a) Firefox

Firefox under the author found three kinds of implementation methods, this article selected two of the introduction.

① Change Setting method

Enter "About:config" in the Address bar, carriage return. Then enter "Network.http.sendRefererHeader" in the filter box that appears below, with only one display left below.

Figure 1 (Click to view larger image)

Double-click the preference, and in the dialog box that appears, change the integer value from 2 to 0. You can see the picture after refreshing.

Figure 2

Describes what each integer value of a preference represents:

0--never send referer information;

1--Send referer information when you click the hyperlink;

2--Send referer information when you click the hyperlink or load the picture. (default value)

If you use the first method, because all send referrer information will be organized, may cause some websites can not be used normally, such as email site, image upload site and security site. If you take this approach, you must constantly change the settings. Because there are more flexible, more customization of the second method, so the author introduced the first method for everyone to learn, not recommended.

② Installation extension method

Firefox extension Refcontrol can achieve browsing hotlinking pictures, for each site to prevent hotlinking need to add a separate address, but its advantage is that a set, never the consequences, not like the first way to change to change. Refcontrol has been able to use Roman Chinese display, I believe that Simplified Chinese will soon appear.

Refcontrol Installation page: https://addons.mozilla.org/en-US/firefox/addon/953

Install the extension, restart Firefox, open the Tools--refcontrol options, or double-click the bottom right corner toolbar icon.

Figure 3

After the pop-up dialog box, click on "New Site", pop-up "Refcontrol Site Properties" dialog box. From the following figure you can see that there are "general", "blockade", "camouflage" and "custom" four kinds of action, and its meaning. For example, Hotlinking's pictures come from NetEase albums, enter their address "photo.163.com" in the "website" column, and set the action to "camouflage."

Figure 4

Make sure that after saving, refresh the webpage, the picture stands now!

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.