FirefoxBar/HeaderEditor is one of the most complex and powerful extensions after Firefox 57.
Today, I create a repository to share rules of it.
The first rule I create is to anti-anti-leech pictures, most of Chinese, by change HTTP Referer.
The anti-leech function is based on the HTTP referer mechanism where the referer, namely an HTTP header field, is used for source tracking, source recognition and processing. You can configure a referer black list or white list to identify and filter visitors in order to limit access to your CDN resources.
We can test here: 反盗链测试
Most of them, a null Referer field can be used to access resources on a CDN node (that is, whether a web browser can use its URL to directly access resources on a target URL).
Add my rule to extension, you can access resources:
Before:
After:
Baidu:
1:
2:
3:
4:
5:
Sina:
1:
2:
Tencent:
1:
2:
3:
4:
chiphell:
1:
2:
PConline:
TianYa:
1:
2:
3:
Open Source Contribution posted via Utopian.io