From ed7de221d014b6eec97f3d7d85c42acc31e9f3b7 Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Mon, 3 Apr 2023 08:22:41 +0800 Subject: [PATCH] enhance hosts to add attributes for domains --- README.zh.md | 10 +++++----- en/_posts/index.xml | 15 +++++++++------ en/adblock_domain/index.html | 25 ++++++++++++++++++------- en/index.xml | 15 +++++++++------ en/sitemap.xml | 10 +++++----- en/tags/adblock/index.xml | 15 +++++++++------ sitemap.xml | 2 +- 7 files changed, 56 insertions(+), 36 deletions(-) diff --git a/README.zh.md b/README.zh.md index b4d4271..f86477f 100644 --- a/README.zh.md +++ b/README.zh.md @@ -1,15 +1,15 @@ ### 超微浏览器 (uweb browser): 微、威、快、高效、极致优化 -English -捐赠 +English +捐赠 [Amazon appstore](https://www.amazon.com/TorApp-Info-uweb-browser-for-geeks/dp/B098QPR6N5) -Downloads +Downloads [超微浏览器下载及使用技巧](https://uwebzh.netlify.app/zh/) -(Mirrors: [gitlab](https://jamesfengcao.gitlab.io/uweb/zh/) [repo](https://repo.or.cz/uweb.git/blob_plain/HEAD:/zh/index.html) [codeberg](https://jamesfengcao.codeberg.page/zh/) [netlify](https://uwebzh.netlify.app/zh/) [stormkit](https://uweb.stormkit.dev/zh/) [surge](https://uweb.surge.sh/zh/) [github](https://torappinfo.github.io/uweb/zh/) [epizy](http://uweb.epizy.com/) [pages](https://uwebzh.pages.dev/zh/) [bitbucket](https://torappinfo.bitbucket.io/zh/) [vercel](https://uweb-zh.vercel.app/zh/)) +(Mirrors: [gitlab](https://jamesfengcao.gitlab.io/uweb/zh/) [repo](https://repo.or.cz/uweb.git/blob_plain/HEAD:/zh/index.html) [codeberg](https://jamesfengcao.codeberg.page/zh/) [netlify](https://uwebzh.netlify.app/zh/) [stormkit](https://uweb.stormkit.dev/zh/) [surge](https://uweb.surge.sh/zh/) [github](https://torappinfo.github.io/uweb/zh/) [torapp](https://torapp.eu.org) [epizy](http://uweb.epizy.com/) [pages](https://muweb.pages.dev/zh/) [render](https://uweb.onrender.com) [bitbucket](https://torappinfo.bitbucket.io/zh/) [vercel](https://uweb.vercel.app/zh/)) -- 国内可以直接使用newbing/chatgpt +- 国内可以直接使用newbing/chatgpt - 微:不到200K。 - 威:支持使用js脚本、url服务、shell命令、内部功能链接定制菜单/(新)按钮/手势; 远程数据皆可成网站。html5应用增强,可匹配本地应用。 - 便捷:图书(pdf/djvu)/txt/词典(mdict,kiwix)/命令行/APP/webapp(web extensions)可作为搜索引擎使用。 diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 9cce61e..35c1a4e 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -46,14 +46,17 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi Mon, 20 Mar 2023 00:00:00 +0000 /en/adblock_domain/ - The hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked. -The file "hosts" defines IP addresses for domains. Each line has the following format: -[IP address][single space][domain name] -Here is an example line with ipv4: + The enhanced hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked. +The enhanced file "hosts" defines IP addresses/attributes for domains. Each line has the following format: +[IP address/attributes][single space][domain name] +where "[IP address/attributes]" could be: +ipv4 address such as: 172.67.157.211 torapp.eu.org -or with ipv6: +ipv6 address, Ex.: [2606:4700:3037::6815:8c3] torapp.eu.org -"default.hosts" blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo. +empty, that would lift all server-imposed limitations. Ex.: +[single space]gitee.com +"default.hosts" blocks whole domain trees including all descedant domains. diff --git a/en/adblock_domain/index.html b/en/adblock_domain/index.html index 7f6d637..557538f 100644 --- a/en/adblock_domain/index.html +++ b/en/adblock_domain/index.html @@ -49,21 +49,32 @@
  • adblock
  • -

    The hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked.

    -

    The file "hosts" defines IP addresses for domains. Each line has the following format:
    -[IP address][single space][domain name]

    -

    Here is an example line with ipv4:
    +

    The enhanced hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked.

    +

    The enhanced file "hosts" defines IP addresses/attributes for domains. Each line has the following format:
    +[IP address/attributes][single space][domain name]

    +

    where "[IP address/attributes]" could be:

    +

    "default.hosts" blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo.com" and "finance.yahoo.com". If the length of the last 2 segments is less than 7, such as "com.pl", then it is treated as one segment, so domains like "xxx.xxx.com.pl" are also valid in the hosts file.

    Each line of the hosts file has the following format:
    [rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without "http(s)://"]
    The first part [rootDomain] is required and the others are optional. regex is java-grammar regular expression. If the second regex is used, it is recommended to merge the first regex to the second one for performance.

    -

    Last Modified: 1 April 2023
    -use [ipv6] in hosts
    +

    Last Modified: 3 April 2023
    +enhance hosts file to add attributes to domains

    
     

    diff --git a/en/index.xml b/en/index.xml index 5504b0e..f0964f1 100644 --- a/en/index.xml +++ b/en/index.xml @@ -46,14 +46,17 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi Mon, 20 Mar 2023 00:00:00 +0000 /en/adblock_domain/ - The hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked. -The file "hosts" defines IP addresses for domains. Each line has the following format: -[IP address][single space][domain name] -Here is an example line with ipv4: + The enhanced hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked. +The enhanced file "hosts" defines IP addresses/attributes for domains. Each line has the following format: +[IP address/attributes][single space][domain name] +where "[IP address/attributes]" could be: +ipv4 address such as: 172.67.157.211 torapp.eu.org -or with ipv6: +ipv6 address, Ex.: [2606:4700:3037::6815:8c3] torapp.eu.org -"default.hosts" blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo. +empty, that would lift all server-imposed limitations. Ex.: +[single space]gitee.com +"default.hosts" blocks whole domain trees including all descedant domains.
    diff --git a/en/sitemap.xml b/en/sitemap.xml index 437f064..b5d7a2b 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -3,7 +3,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> /en/_posts/ - 2023-04-02T10:37:42+08:00 + 2023-04-03T08:21:31+08:00 /en/ - 2023-04-02T10:37:42+08:00 + 2023-04-03T08:21:31+08:00 /en/tags/adblock/ - 2023-04-01T15:05:21+08:00 + 2023-04-03T08:21:31+08:00 /en/adblock_domain/ - 2023-04-01T15:05:21+08:00 + 2023-04-03T08:21:31+08:00 /en/tags/ - 2023-04-01T15:05:21+08:00 + 2023-04-03T08:21:31+08:00 Mon, 20 Mar 2023 00:00:00 +0000 /en/adblock_domain/ - The hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked. -The file "hosts" defines IP addresses for domains. Each line has the following format: -[IP address][single space][domain name] -Here is an example line with ipv4: + The enhanced hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked. +The enhanced file "hosts" defines IP addresses/attributes for domains. Each line has the following format: +[IP address/attributes][single space][domain name] +where "[IP address/attributes]" could be: +ipv4 address such as: 172.67.157.211 torapp.eu.org -or with ipv6: +ipv6 address, Ex.: [2606:4700:3037::6815:8c3] torapp.eu.org -"default.hosts" blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo. +empty, that would lift all server-imposed limitations. Ex.: +[single space]gitee.com +"default.hosts" blocks whole domain trees including all descedant domains. diff --git a/sitemap.xml b/sitemap.xml index 8d4794d..15a8b2b 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,7 +4,7 @@ en/sitemap.xml - 2023-04-02T10:37:42+08:00 + 2023-04-03T08:21:31+08:00