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.
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.
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."
Make sure that after saving, refresh the webpage, the picture stands now!