@ -46,14 +46,17 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/adblock_domain/</guid>
<description>The hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
The file &quot;hosts&quot; defines IP addresses for domains. Each line has the following format:
[IP address][single space][domain name]
Here is an example line with ipv4:
<description>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
where &quot;[IP address/attributes]&quot; 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
&quot;default.hosts&quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &quot;yahoo.</description>
empty, that would lift all server-imposed limitations. Ex.:
[single space]gitee.com
&quot;default.hosts&quot; blocks whole domain trees including all descedant domains.</description>
<p>The hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked.</p>
<p>The file <ahref="file:///data/data/info.torapp.uweb/files/hosts">"hosts"</a> defines IP addresses for domains. Each line has the following format:<br>
[IP address][single space][domain name]</p>
<p>Here is an example line with ipv4:<br>
<p>The enhanced hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked.</p>
<p>The <spanstyle="color:red">enhanced</span> file <ahref="file:///data/data/info.torapp.uweb/files/hosts">"hosts"</a> defines IP addresses/attributes for domains. Each line has the following format:<br>
<p>where "[IP address/attributes]" could be:</p>
<ul>
<li>
<p>ipv4 address such as:<br>
172.67.157.211 torapp.eu.org</p>
<p>or with ipv6:<br>
</li>
<li>
<p>ipv6 address, Ex.:<br>
[2606:4700:3037::6815:8c3] torapp.eu.org</p>
</li>
<li>
<p>empty, that would lift all server-imposed limitations. Ex.:<br>
[single space]gitee.com</p>
</li>
</ul>
<p><ahref="file:///data/data/info.torapp.uweb/files/default.hosts">"default.hosts"</a> 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.</p>
<p>Each line of the hosts file has the following format:<br>
[rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without "http(s)://"]<br>
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.</p>
</div>
<p>Last Modified: 1 April 2023<br>
use [ipv6] in hosts<br>
<p>Last Modified: 3 April 2023<br>
enhance hosts file to add attributes to domains<br>
@ -46,14 +46,17 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/adblock_domain/</guid>
<description>The hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
The file &quot;hosts&quot; defines IP addresses for domains. Each line has the following format:
[IP address][single space][domain name]
Here is an example line with ipv4:
<description>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
where &quot;[IP address/attributes]&quot; 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
&quot;default.hosts&quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &quot;yahoo.</description>
empty, that would lift all server-imposed limitations. Ex.:
[single space]gitee.com
&quot;default.hosts&quot; blocks whole domain trees including all descedant domains.</description>
<pubDate>Mon, 20 Mar 2023 00:00:00 +0000</pubDate>
<guid>/en/adblock_domain/</guid>
<description>The hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
The file &quot;hosts&quot; defines IP addresses for domains. Each line has the following format:
[IP address][single space][domain name]
Here is an example line with ipv4:
<description>The enhanced hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.
The enhanced file &quot;hosts&quot; defines IP addresses/attributes for domains. Each line has the following format:
where &quot;[IP address/attributes]&quot; 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
&quot;default.hosts&quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &quot;yahoo.</description>
empty, that would lift all server-imposed limitations. Ex.:
[single space]gitee.com
&quot;default.hosts&quot; blocks whole domain trees including all descedant domains.</description>