mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
simplify bingAI installation
This commit is contained in:
parent
a7caf970e6
commit
ed25fd1dd7
15 changed files with 43 additions and 44 deletions
|
@ -50,6 +50,7 @@
|
|||
|
||||
</ul>
|
||||
<p>The enhanced hosts files "hosts" and "default.hosts" take effect when the setting option "using hosts" is checked.</p>
|
||||
<h4 id="hosts">hosts</h4>
|
||||
<p>The <span style="color:red">enhanced</span> file <a href="file:///data/data/info.torapp.uweb/files/hosts">"hosts"</a> defines IP addresses/attributes for domains. Each line has the following format:<br>
|
||||
[[IP address][attributes]][single space][domain name]</p>
|
||||
<p>where "[[IP address][attributes]]" could be:</p>
|
||||
|
@ -76,15 +77,22 @@ Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credential
|
|||
<p>IP address and response headers, separeded by ';', Ex.:<br>
|
||||
104.21.8.195;Access-Control-Allow-Origin;https://www.bing.com;Access-Control-Allow-Credentials;true uweb.torapp.eu.org</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>IP address, real domain name and response headers (Experimental), separeded by ';', Ex.:<br>
|
||||
104.21.8.195;www.bing.com uweb.torapp.eu.org</p>
|
||||
<p>which indicates the domain "uweb.torapp.eu.org" is just a proxy of "www.bing.com", and as such, the cookies of "www.bing.com" would be used for "uweb.torapp.eu.org".</p>
|
||||
<p>To make life easier, use lower-case domain name (the first letter should not be a digital) and capitalize the first letter of response header names.</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h4 id="defaulthosts">default.hosts</h4>
|
||||
<p><a href="file:///data/data/info.torapp.uweb/files/default.hosts">"default.hosts"</a> blocks whole domain trees including all descendant 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: 8 April 2023<br>
|
||||
add cloudflare/bing.js<br>
|
||||
<p>Last Modified: 13 April 2023<br>
|
||||
simplify bingAI installation<br>
|
||||
<pre></pre>
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue