add enhanced hosts support to README

This commit is contained in:
James Feng Cao 2023-04-03 09:13:07 +08:00
parent ed7de221d0
commit 37e1fae65a
15 changed files with 38 additions and 34 deletions

View file

@ -67,6 +67,7 @@
[single space]gitee.com</p>
</li>
</ul>
<p>which will make all git repositories on the domain visitable as websites with raw file access url.</p>
<p><a href="file:///data/data/info.torapp.uweb/files/default.hosts">&quot;default.hosts&quot;</a> 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.com&quot; and &quot;finance.yahoo.com&quot;. If the length of the last 2 segments is less than 7, such as &quot;com.pl&quot;, then it is treated as one segment, so domains like &quot;xxx.xxx.com.pl&quot; 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 &quot;http(s)://&quot;]<br>