From ed7de221d014b6eec97f3d7d85c42acc31e9f3b7 Mon Sep 17 00:00:00 2001
From: James Feng Cao 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: 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: where "[IP address/attributes]" could be: ipv4 address such as: or with ipv6: ipv6 address, Ex.: empty, that would lift all server-imposed limitations. Ex.: "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: Last Modified: 1 April 2023 Last Modified: 3 April 2023
-[IP address][single space][domain name]
+
+[IP address/attributes][single space][domain name]
+
172.67.157.211 torapp.eu.org
+
[2606:4700:3037::6815:8c3] torapp.eu.org
+[single space]gitee.com
[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.
-use [ipv6] in hosts
+
+enhance hosts file to add attributes to domains
which will make all git repositories on the domain visitable as websites with raw file access url.
"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)://"]
diff --git a/en/changelog/index.html b/en/changelog/index.html
index 8fb2699..c0df0a1 100644
--- a/en/changelog/index.html
+++ b/en/changelog/index.html
@@ -51,7 +51,8 @@
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
+
987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
+985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
975: Bookmarks to support styling for markdown etc.
971: multiple type profiles: switch any data including website logins, user configurations orthogonally.
@@ -76,8 +77,8 @@
-
Last Modified: 22 March 2023
-add option https to func.html
+
Last Modified: 3 April 2023
+enhance hosts file to add attributes to domains
Custom paper size PDF export and long vector screenshot, TTS, text reflow, resource sniffer, translation, reader's mode, user-defined url redirection, webdav/http backup & restore, auto next page, sending/receiving msg/file(s), site config (UA, no JS, no image, no 3rd party script/resource,active script, global scripts), http(s)/socks proxy, enabling html5 apps for local files (pdf/djvu/epub viewer, mdict dictionary lookup etc.).
@@ -96,8 +96,8 @@ -Last Modified: 1 April 2023
-sync newbinggogo
+
Last Modified: 3 April 2023
+enhance hosts file to add attributes to domains
@@ -84,8 +85,8 @@
配套安装uWeb定制Termux应用,可用地址栏作图(类似matlab功能)、超级计算器(无限精度/π的前万位或更多、无限函数、无限常量)、符号演算(解方程、分解因式、求积分导数)、离线字典查找等。譬如地址栏输入sin(x)**5就直接得到函数图形。利用好第三方代码,才能真正发挥出uWeb的潜能。
-Last Modified: 1 April 2023
-sync newbinggogo
+
Last Modified: 3 April 2023
+enhance hosts file to add attributes to domains