index.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <link rel="canonical" href="https://jamesfengcao.gitlab.io/uweb/zh/hosts/" />
  7. <link rel="stylesheet" href="../style.css#" type="text/css" />
  8. <title>加速国外网站访问</title>
  9. <script>
  10. function findLang(){
  11. let href = location.href;
  12. for(let i=href.length-1;i>0;i--){
  13. if('/'==href.charAt(i) && '/'==href.charAt(i-3))
  14. return i;
  15. }
  16. return 0;
  17. }
  18. function nav2(page){
  19. let i = findLang();
  20. location.href = location.href.substring(0,i+1)+page;
  21. }
  22. function nav2Lang(lang){
  23. let i = findLang();
  24. let href = location.href;
  25. location.href = location.href.substring(0,i-2)+lang+location.href.substring(i);
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <header class='header'>
  31. <a class="logo" href="javascript:void(0)" onclick="return nav2('index.html#')">首页</a> <a class="logo" href="javascript:void(0)" onclick="return nav2('tags/index.html#')">标签</a>
  32. <nav>
  33. </nav>
  34. </header>
  35. <br />
  36. <div class="container">
  37. <h1 class="title">加速国外网站访问
  38. <br>
  39. <span class="subtitle"></span>
  40. </h1>
  41. <ul class="tags">
  42. <li><a href="../tags/%e4%b8%8d%e8%89%af%e4%bf%a1%e6%81%af%e5%b1%8f%e8%94%bd/index.html#">不良信息屏蔽</a> </li>
  43. <li><a href="../tags/%e5%9b%bd%e5%a4%96%e7%bd%91%e5%9d%80/index.html#">国外网址</a> </li>
  44. </ul>
  45. <p>不少国外网站本身虽可访问,但由于网站需要下载其它网址的资源而导致无法访问。根域名屏蔽可屏蔽文件中域名的一切子域名、孙域名、......,从而主动排除这些网址,最终允许浏览器快速访问。</p>
  46. <p>使用Android端<a href="..">uweb浏览器</a>。<br>
  47. 域名文件 <a href="../adblock_domain/index.html#">&quot;default.hosts&quot;</a> 内容如下:<br>
  48. googleadservices.com<br>
  49. googlesyndication.com<br>
  50. adsense.com<br>
  51. googleapis.com<br>
  52. google-analytics.com<br>
  53. googletagservices.com<br>
  54. facebook.com<br>
  55. fbcdn.net</p>
  56. <p>其它国外网址访问技巧:</p>
  57. <ul>
  58. <li>尝试关闭javascript, 譬如程序员网站stackoverflow.com在关闭javascript的情况下国内一般均可快速访问。</li>
  59. <li>关闭网页图片</li>
  60. <li><a href="../redirect/index.html#">重定向网址</a>:包括重定向至国内镜像以及全局重定向。</li>
  61. </ul>
  62. </div>
  63. <p>Last Modified: 20 May 2024<br>
  64. update tiangong AI<br>
  65. <pre></pre>
  66. </p>
  67. <script id='jsgiscus'
  68. src='https://giscus.app/client.js'
  69. data-repo="torappinfo/uweb"
  70. data-repo-id="MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
  71. data-category="Announcements"
  72. data-category-id="DIC_kwDOEgNLGc4CQjsh"
  73. data-mapping="title"
  74. data-strict="0"
  75. data-reactions-enabled="1"
  76. data-emit-metadata="0"
  77. data-input-position="top"
  78. data-theme="light"
  79. data-lang="en"
  80. data-loading="lazy"
  81. crossorigin="anonymous" async>
  82. </script>
  83. <footer class="site-footer">
  84. <div class="container">
  85. &copy; 2018-2024 Richard H. Cao
  86. </div>
  87. </footer>
  88. <!-- This document is licensed under the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at <https://www.gnu.org/licenses/>. -->
  89. </body>
  90. </html>