use [ipv6] in hosts

This commit is contained in:
James Feng Cao 2023-04-01 15:15:10 +08:00
parent 62f3a10994
commit 5dcba20904
18 changed files with 54 additions and 33 deletions

View file

@ -37,7 +37,11 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<description>The hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect when the setting option &amp;quot;using hosts&amp;quot; is checked.
The file &amp;quot;hosts&amp;quot; defines IP addresses for domains. Each line has the following format:
[IP address][single space][domain name]
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.com&amp;quot; and &amp;quot;finance.yahoo.com&amp;quot;. If the length of the last 2 segments is less than 7, such as &amp;quot;com.</description>
Here is an example line with ipv4:
172.67.157.211 torapp.eu.org
or with ipv6:
[2606:4700:3037::6815:8c3] torapp.eu.org
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.</description>
</item>
<item>

View file

@ -52,14 +52,18 @@
<p>The hosts files &quot;hosts&quot; and &quot;default.hosts&quot; take effect when the setting option &quot;using hosts&quot; is checked.</p>
<p>The file <a href="file:///data/data/info.torapp.uweb/files/hosts">&quot;hosts&quot;</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>
172.67.157.211 torapp.eu.org</p>
<p>or with ipv6:<br>
[2606:4700:3037::6815:8c3] torapp.eu.org</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>
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: 21 March 2023<br>
supports hosts<br>
<p>Last Modified: 1 April 2023<br>
use [ipv6] in hosts<br>
<pre></pre>
</p>

View file

@ -37,7 +37,11 @@ Long pressing the bookmark button in uweb browser will popup menus defined in fi
<description>The hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect when the setting option &amp;quot;using hosts&amp;quot; is checked.
The file &amp;quot;hosts&amp;quot; defines IP addresses for domains. Each line has the following format:
[IP address][single space][domain name]
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.com&amp;quot; and &amp;quot;finance.yahoo.com&amp;quot;. If the length of the last 2 segments is less than 7, such as &amp;quot;com.</description>
Here is an example line with ipv4:
172.67.157.211 torapp.eu.org
or with ipv6:
[2606:4700:3037::6815:8c3] torapp.eu.org
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.</description>
</item>
<item>

View file

@ -105,6 +105,10 @@ Config http proxy, &quot;:010:&quot; to disable any proxy.</p>
<p>:011[socks host]:[port]<br>
Socks proxy</p>
</li>
<li>
<p>:0cc[url1]:[url2]<br>
cookie copy from url1 to url2</p>
</li>
</ul>
<h4 id="commands">commands</h4>
<ul>
@ -298,8 +302,8 @@ use &quot;i:0mi:92Host;209.216.230.240::https://news.ycombinator.com&quot; to vi
</ul>
</div>
<p>Last Modified: 22 March 2023<br>
add option https to func.html<br>
<p>Last Modified: 1 April 2023<br>
use [ipv6] in hosts<br>
<pre>i:56 urls support CTRL_A to CTRL-Z
</pre>
</p>

View file

@ -52,7 +52,7 @@
<p><a href="https://www.amazon.com/TorApp-Info-uweb-browser-for-geeks/dp/B098QPR6N5">Amazon appstore</a><br>
<a href="en/download.md" onclick="{let u=location.href; if(u.endsWith('index.html'))location='../../en/changelog/index.html'}">Downloads</a></p>
<p><a href="https://torappinfo.github.io/uweb/en/">Uweb browser: downloads, plugins and tips</a><br>
(Mirrors: <a href="https://uwebzh.netlify.app/en/">netlify</a> <a href="https://jamesfengcao.gitlab.io/uweb/en/">gitlab</a> <a href="https://uweb.stormkit.dev/en/">stormkit</a> <a href="https://uweb.surge.sh/en/">surge</a> <a href="https://jamesfengcao.codeberg.page/en/">codeberg</a> <a href="https://repo.or.cz/uweb.git/blob_plain/HEAD:/en/index.html">repo</a> <a href="https://muweb.pages.dev/en/">pages</a> <a href="https://uweb.vercel.app/en/">vercel</a> <a href="https://torappinfo.bitbucket.io/en/">bitbucket</a> <a href="https://uwebzh.onrender.com/en/">render</a>)</p>
(Mirrors: <a href="https://uwebzh.netlify.app/en/">netlify</a> <a href="https://jamesfengcao.gitlab.io/uweb/en/">gitlab</a> <a href="https://uweb.stormkit.dev/en/">stormkit</a> <a href="https://uweb.surge.sh/en/">surge</a> <a href="https://jamesfengcao.codeberg.page/en/">codeberg</a> <a href="https://repo.or.cz/uweb.git/blob_plain/HEAD:/en/index.html">repo</a> <a href="https://muweb.pages.dev/en/">pages</a> <a href="https://uweb.vercel.app/en/">vercel</a> <a href="https://torappinfo.bitbucket.io/en/">bitbucket</a> <a href="https://uweb.onrender.com/en/">render</a>)</p>
<ul>
<li>Powerful: any native functionality with html5 enhancement and still secure; any urls to host website; javascript and shell scripting for general processing; piping between console and GUI and more with Termux.</li>
<li>Customizable: user-defined menus, (new) buttons and gestures for user agents, bookmarklets, url services, shell commands, internal functionality links and text processing etc.</li>
@ -96,8 +96,8 @@
</ul>
</div>
<p>Last Modified: 30 March 2023<br>
domain changes<br>
<p>Last Modified: 31 March 2023<br>
use [ipv6] in hosts<br>
<pre></pre>
</p>

View file

@ -4,7 +4,7 @@
if("https://www.bing.com/turing/conversation/create"==url){
url = "https://mybing1.xn--xyza.top/Create";
options = {
headers:{"Cookie1":document.cookie},
headers:{},
};
}
return oFetch(url,options)

View file

@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>/en/_posts/</loc>
<lastmod>2023-03-29T07:19:36+08:00</lastmod>
<lastmod>2023-04-01T15:05:21+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -16,7 +16,7 @@
/>
</url><url>
<loc>/en/links/</loc>
<lastmod>2023-03-22T22:52:24+08:00</lastmod>
<lastmod>2023-04-01T08:54:03+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -29,7 +29,7 @@
/>
</url><url>
<loc>/en/</loc>
<lastmod>2023-03-30T21:40:37+08:00</lastmod>
<lastmod>2023-04-01T15:05:21+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -42,10 +42,10 @@
/>
</url><url>
<loc>/en/tags/adblock/</loc>
<lastmod>2023-03-21T13:34:07+08:00</lastmod>
<lastmod>2023-04-01T15:05:21+08:00</lastmod>
</url><url>
<loc>/en/adblock_domain/</loc>
<lastmod>2023-03-21T13:34:07+08:00</lastmod>
<lastmod>2023-04-01T15:05:21+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -58,7 +58,7 @@
/>
</url><url>
<loc>/en/tags/</loc>
<lastmod>2023-03-21T13:34:07+08:00</lastmod>
<lastmod>2023-04-01T15:05:21+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -508,7 +508,7 @@
/>
</url><url>
<loc>/en/readme/</loc>
<lastmod>2023-03-30T21:40:37+08:00</lastmod>
<lastmod>2023-03-31T10:23:52+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"
@ -533,7 +533,7 @@
/>
</url><url>
<loc>/en/unlist/</loc>
<lastmod>2023-03-30T21:40:37+08:00</lastmod>
<lastmod>2023-03-31T10:23:52+08:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="zh"

View file

@ -15,7 +15,11 @@
<description>The hosts files &amp;quot;hosts&amp;quot; and &amp;quot;default.hosts&amp;quot; take effect when the setting option &amp;quot;using hosts&amp;quot; is checked.
The file &amp;quot;hosts&amp;quot; defines IP addresses for domains. Each line has the following format:
[IP address][single space][domain name]
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.com&amp;quot; and &amp;quot;finance.yahoo.com&amp;quot;. If the length of the last 2 segments is less than 7, such as &amp;quot;com.</description>
Here is an example line with ipv4:
172.67.157.211 torapp.eu.org
or with ipv6:
[2606:4700:3037::6815:8c3] torapp.eu.org
&amp;quot;default.hosts&amp;quot; blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as &amp;quot;yahoo.</description>
</item>
</channel>