diff --git a/2023/07/05/trace-of-line-01/index.html b/2023/07/05/trace-of-line-01/index.html index a3ccdda..a689ea1 100644 --- a/2023/07/05/trace-of-line-01/index.html +++ b/2023/07/05/trace-of-line-01/index.html @@ -24,7 +24,7 @@ - + diff --git a/2023/07/05/zhihu-aac-old/index.html b/2023/07/05/zhihu-aac-old/index.html index 449bb53..8f1347d 100644 --- a/2023/07/05/zhihu-aac-old/index.html +++ b/2023/07/05/zhihu-aac-old/index.html @@ -25,7 +25,7 @@ - + @@ -304,7 +304,6 @@

聊聊知乎盐选反爬 (回答页篇)

一、知乎反爬效果

来自知乎回答不被爱是一种什么样的感受? - 知乎

- 乱码示意图 @@ -320,7 +319,6 @@

知乎加载的字体 @@ -328,7 +326,6 @@

下载的字体文件 @@ -336,13 +333,11 @@

[3] 并打开。

- 正常字体
- 反爬字体 @@ -354,7 +349,6 @@

我们打开 FontDrop! 加载字体,向下翻,观察字形的特征。

- 字体中的字形 diff --git a/2023/07/06/zerotier-planet-convert/index.html b/2023/07/06/zerotier-planet-convert/index.html index a8f78ba..c722530 100644 --- a/2023/07/06/zerotier-planet-convert/index.html +++ b/2023/07/06/zerotier-planet-convert/index.html @@ -24,7 +24,7 @@ - + diff --git a/2023/07/10/trace-of-line-02/index.html b/2023/07/10/trace-of-line-02/index.html index ef2c6be..6504e12 100644 --- a/2023/07/10/trace-of-line-02/index.html +++ b/2023/07/10/trace-of-line-02/index.html @@ -24,7 +24,7 @@ - + diff --git a/2023/08/04/permission-system-design-share/index.html b/2023/08/04/permission-system-design-share/index.html index 5e56d40..c505758 100644 --- a/2023/08/04/permission-system-design-share/index.html +++ b/2023/08/04/permission-system-design-share/index.html @@ -24,7 +24,7 @@ - + diff --git a/2023/08/04/test-latex/index.html b/2023/08/04/test-latex/index.html index 231d66f..0757bc8 100644 --- a/2023/08/04/test-latex/index.html +++ b/2023/08/04/test-latex/index.html @@ -24,7 +24,7 @@ - + diff --git a/2023/08/31/cell-structure/index.html b/2023/08/31/cell-structure/index.html index e734954..b2073bb 100644 --- a/2023/08/31/cell-structure/index.html +++ b/2023/08/31/cell-structure/index.html @@ -27,7 +27,7 @@ - + @@ -407,7 +407,6 @@

Animal cell

Animal cell has all above.

Diagram

- Animal cell diagram @@ -429,7 +428,6 @@

Diagram

- Plant cell diagram @@ -443,7 +441,6 @@

Plasmid

Small circles of DNA.

Diagram

- Prokaryotic cell diagram diff --git a/2023/10/03/busuanzi-bug/index.html b/2023/10/03/busuanzi-bug/index.html index c39ee0c..ddf54ca 100644 --- a/2023/10/03/busuanzi-bug/index.html +++ b/2023/10/03/busuanzi-bug/index.html @@ -29,7 +29,7 @@ - + @@ -308,13 +308,11 @@

不蒜子在 Safari 中计数异常

近期,我的博客在 Safari 中,文章访问量异常的大。经过抓包,确认了问题与 Referer 头相关。然而,Referrer-Policy 并没有解决问题。这与其接口设计有关。本文将进行解释,并提出我的解决方案。

问题表现

- Safari 打开效果
- 正常情况打开效果 @@ -326,14 +324,12 @@

问题原因

为了找到引起这个问题的原因,我们对上述页面分别向 busuanzi 发的请求都进行抓包。

Safari

- Safari 向 busuanzi 发的请求

Chrome

- Chrome 向 busuanzi 发的请求 @@ -341,7 +337,6 @@

Chrome从上面的两个请求,可以看出Safari 向 busuanzi 发送的请求 Referer 头是错误的。这导致 Safari 获得了 https://blog.cxzlw.top/ 的浏览量信息。这是为什么呢?

高人指点

加入 busuanzi QQ 群[1]后,我在群中询问。并得到了大佬「 」的回复。
- 大佬的解答 diff --git a/about/index.html b/about/index.html index ca6ad29..d43dfd5 100644 --- a/about/index.html +++ b/about/index.html @@ -24,7 +24,7 @@ - + diff --git a/img/animal.jpg.avif b/img/animal.jpg.avif deleted file mode 100644 index 487f90b..0000000 Binary files a/img/animal.jpg.avif and /dev/null differ diff --git a/img/avatar.png.avif b/img/avatar.png.avif deleted file mode 100644 index f843cee..0000000 Binary files a/img/avatar.png.avif and /dev/null differ diff --git a/img/default.png.avif b/img/default.png.avif deleted file mode 100644 index 89fb5d0..0000000 Binary files a/img/default.png.avif and /dev/null differ diff --git a/img/fluid.png.avif b/img/fluid.png.avif deleted file mode 100644 index 833e2c4..0000000 Binary files a/img/fluid.png.avif and /dev/null differ diff --git a/img/image-1.png.avif b/img/image-1.png.avif deleted file mode 100644 index bcbb74e..0000000 Binary files a/img/image-1.png.avif and /dev/null differ diff --git a/img/image-2.png.avif b/img/image-2.png.avif deleted file mode 100644 index ef70111..0000000 Binary files a/img/image-2.png.avif and /dev/null differ diff --git a/img/image-3.png.avif b/img/image-3.png.avif deleted file mode 100644 index da54b26..0000000 Binary files a/img/image-3.png.avif and /dev/null differ diff --git a/img/image-4.png.avif b/img/image-4.png.avif deleted file mode 100644 index fbebb7a..0000000 Binary files a/img/image-4.png.avif and /dev/null differ diff --git a/img/image-5.png.avif b/img/image-5.png.avif deleted file mode 100644 index 4d4966b..0000000 Binary files a/img/image-5.png.avif and /dev/null differ diff --git a/img/image-6.png.avif b/img/image-6.png.avif deleted file mode 100644 index d6d8e6f..0000000 Binary files a/img/image-6.png.avif and /dev/null differ diff --git a/img/image-7.png.avif b/img/image-7.png.avif deleted file mode 100644 index faf03f3..0000000 Binary files a/img/image-7.png.avif and /dev/null differ diff --git a/img/image-8.png.avif b/img/image-8.png.avif deleted file mode 100644 index 2956743..0000000 Binary files a/img/image-8.png.avif and /dev/null differ diff --git a/img/image-9.png.avif b/img/image-9.png.avif deleted file mode 100644 index 0d08ca0..0000000 Binary files a/img/image-9.png.avif and /dev/null differ diff --git a/img/image.png.avif b/img/image.png.avif deleted file mode 100644 index bef45f8..0000000 Binary files a/img/image.png.avif and /dev/null differ diff --git a/img/img-20231004-chrome-busuanzi.png.avif b/img/img-20231004-chrome-busuanzi.png.avif deleted file mode 100644 index ac556ee..0000000 Binary files a/img/img-20231004-chrome-busuanzi.png.avif and /dev/null differ diff --git a/img/img-20231004-safari-busuanzi.png.avif b/img/img-20231004-safari-busuanzi.png.avif deleted file mode 100644 index 3b0f498..0000000 Binary files a/img/img-20231004-safari-busuanzi.png.avif and /dev/null differ diff --git a/img/plant.jpg.avif b/img/plant.jpg.avif deleted file mode 100644 index 02cb8ae..0000000 Binary files a/img/plant.jpg.avif and /dev/null differ diff --git a/img/police_beian.png.avif b/img/police_beian.png.avif deleted file mode 100644 index ac652fa..0000000 Binary files a/img/police_beian.png.avif and /dev/null differ diff --git a/img/prokaryotic.jpg.avif b/img/prokaryotic.jpg.avif deleted file mode 100644 index 69ca561..0000000 Binary files a/img/prokaryotic.jpg.avif and /dev/null differ diff --git a/index.html b/index.html index 284d659..5447e4a 100644 --- a/index.html +++ b/index.html @@ -547,7 +547,6 @@

- 聊聊知乎盐选反爬 (回答页篇) diff --git a/sw.js b/sw.js index 30f19cb..9dba203 100644 --- a/sw.js +++ b/sw.js @@ -19,7 +19,7 @@ registerRoute(/^https:\/\/blog\.cxzlw\.top\/.*/, networkFirst, "GET"); registerRoute(/^http:\/\/localhost:8000\/.*\.html/, networkFirst, "GET"); // registerRoute(/^http:\/\/localhost:8000\/.*/, staleWhileRevalidate, "GET"); -const urls = [{"revision":"716af0ec9c3399bdd3c7924f64d69a94","url":"2023/07/05/trace-of-line-01/index.html"},{"revision":"7e0179790154874ef634f2af8d44aa82","url":"2023/07/05/zhihu-aac-old/index.html"},{"revision":"f0a3f90b8cefe016ac0a5dc4a065282a","url":"2023/07/06/zerotier-planet-convert/index.html"},{"revision":"964217e43a0501079be35dc4854b680b","url":"2023/07/10/trace-of-line-02/index.html"},{"revision":"7aee72ded29a255422d43984d9194a09","url":"2023/08/04/permission-system-design-share/index.html"},{"revision":"8efc345955103465723e8ee2d5726bff","url":"2023/08/04/test-latex/index.html"},{"revision":"7ce5d1d02b29ba90e69c70c96056511f","url":"2023/08/31/cell-structure/index.html"},{"revision":"1eea9fce11ff7e292bb148c40e4e5eb8","url":"2023/10/03/busuanzi-bug/index.html"},{"revision":"d5f2aa690279f9f3bd20cb2886e8cfca","url":"404.html"},{"revision":"4370e1e33b49da71ea6054d0df1c885a","url":"about/index.html"},{"revision":"ac8a18cded285809e6b9e1aeb18198d2","url":"archives/2023/07/index.html"},{"revision":"d68b4f32d774c7ca42e5faea2f562bae","url":"archives/2023/08/index.html"},{"revision":"a6d46487dec226c01fe03884fc645624","url":"archives/2023/10/index.html"},{"revision":"c78f149b3e9e28dd8a8152a54f59bb2b","url":"archives/2023/index.html"},{"revision":"11196b37b5a023c21883efa793a36896","url":"archives/index.html"},{"revision":"242837d47be8b7c244eb3b8bfc38e027","url":"baidu_verify_codeva-0rhRRODu4H.html"},{"revision":"62b328640af6af42478c54f90e3b245b","url":"BingSiteAuth.xml"},{"revision":"ee82583e1cf1016cb15fe318a1b09cd3","url":"categories/index.html"},{"revision":"5ce280d86637a41c57fdc51fd463237a","url":"css/gitalk.css"},{"revision":"be3af4b8abf2074e66acb737867c43dc","url":"css/highlight-dark.css"},{"revision":"fdd56de5edd1e833674574fdc74bbfe7","url":"css/highlight.css"},{"revision":"7d6d29df18411568c1ae622605bc1907","url":"css/main.css"},{"revision":"71cb12d00310a7852b853744c41d9a34","url":"favicon.ico"},{"revision":"ea11c930cb20962f72c29f0e2931bfbd","url":"img/animal.jpg"},{"revision":"2d9aa61e592b26e2745f3c161c48c397","url":"img/avatar.png"},{"revision":"beb05a6b5b201044b6d80cacdf29f905","url":"img/default.png"},{"revision":"5603316bb5bc54a9d5cab14fddd4c510","url":"img/fluid.png"},{"revision":"4d772ced566ade339ca6718c7ed38674","url":"img/image-1.png"},{"revision":"dcfafd0cc238b0a63a733edd1a70bcfe","url":"img/image-2.png"},{"revision":"5ba9885de31a8d1e8df04a1d915b1069","url":"img/image-3.png"},{"revision":"3d2983fa8549bb6a93b7b905a6baea9c","url":"img/image-4.png"},{"revision":"55692e23130e9504505085798384e43e","url":"img/image-5.png"},{"revision":"88c5e4fa4dec4b514a5d0d53b72d75c7","url":"img/image-6.png"},{"revision":"e52801ec8fe9abad24f24c8d96402fb3","url":"img/image-7.png"},{"revision":"3f940453e65f4635917f162b9a1d1432","url":"img/image-8.png"},{"revision":"47c43a3db8dca516e147f6f38324c1eb","url":"img/image-9.png"},{"revision":"18a13cfe951c406bbb4da3a7e7bc8ca2","url":"img/image.png"},{"revision":"a88a6883f6f27cd7b95a3ae753f91a40","url":"img/img-20231004-chrome-busuanzi.png"},{"revision":"f6f63a28b80c91ec49153f37df82f42d","url":"img/img-20231004-safari-busuanzi.png"},{"revision":"15657539044e11a19a1c6c7e3073d1b3","url":"img/loading.gif"},{"revision":"1b164cde9b70a49e2f3831d211be9f66","url":"img/plant.jpg"},{"revision":"b769e8dfde5660239317ed60758dba13","url":"img/police_beian.png"},{"revision":"74669a1c8e0c10b60ff13c2430adae44","url":"img/prokaryotic.jpg"},{"revision":"46591bd2bd4a802ddd2314d55ec848d3","url":"index.html"},{"revision":"7683fab2fc9d03a3a659aa956b3a54e8","url":"js/boot.js"},{"revision":"605f587be2ab3d36472bb03ac27ede65","url":"js/color-schema.js"},{"revision":"7fa076a71a5559d89af6b0c6dfd3a0d2","url":"js/events.js"},{"revision":"a62feede0189fe66290e8959528b674f","url":"js/image-ng.js"},{"revision":"fab30a410e5f490fce3f977a6936a714","url":"js/img-lazyload.js"},{"revision":"fb4a815ccdb5d851d00561dbb62251c4","url":"js/leancloud.js"},{"revision":"9dc47a0b7b6bacfd16541c9b2b5b6bc5","url":"js/local-search.js"},{"revision":"6c10bee3f659ca91b534bf4a81d62f1e","url":"js/plugins.js"},{"revision":"bc2f15d100bdd8e7ecbaf2ca670a714f","url":"js/progressbar-done.js"},{"revision":"8a36a7c42b0d15eb06cbdef6c03dd803","url":"js/statistics.js"},{"revision":"f7ce9014de1cd7358eeb3aba81c8efe2","url":"js/utils.js"},{"revision":"2222fa803fc54e3ad34428f800b01bd6","url":"links/index.html"},{"revision":"21168ee9f5275246e815d6b7c4131f71","url":"local-search.xml"},{"revision":"d44e23d58dbd7698069d517424bb92e9","url":"sitemap.xml"},{"revision":"f05d38eed1d483463ffd6bac51232d90","url":"tags/busuanzi/index.html"},{"revision":"e29561d74122ca8f466de517c4a71d46","url":"tags/cxzlw/index.html"},{"revision":"192d2b9f8808ae4fdb3ea3d9f0054f12","url":"tags/Fluid/index.html"},{"revision":"0dc62477291421d7d74c6c22473623f1","url":"tags/Hexo/index.html"},{"revision":"84acf6d54fac364406a434404a1661d9","url":"tags/index.html"},{"revision":"474532f501dec5f8fe89cd89a45db899","url":"tags/Python/index.html"},{"revision":"85861807d17bb370fa81020947d49cae","url":"tags/Zerotier/index.html"},{"revision":"719f6aac27630244d45b1a33a19fb5d3","url":"tags/不蒜子/index.html"},{"revision":"2b278f13f1699bf348b193e3d5fecce2","url":"tags/反爬/index.html"},{"revision":"fd7477076af9eba95f0bd69edb14e971","url":"tags/小说/index.html"},{"revision":"50c5a6485a5d1fc654ba814e85524cf9","url":"tags/权限系统/index.html"},{"revision":"a0649ac16eeef1d6aeadefaa6eae520f","url":"tags/知乎/index.html"},{"revision":"0373b76c97835c62548e8ac46a569280","url":"tags/离谱网文/index.html"},{"revision":"4f929ad6ef0352590312fff328445ba8","url":"tags/自建-Planet/index.html"},{"revision":"962a16241c7c1a6f3aac186ddd28f885","url":"tags/路过的某个学渣/index.html"},{"revision":"f977ce1e6a88c6b52e6c2130e43e2550","url":"tags/飞石/index.html"},{"revision":"decd4b8f6af7e1c9d8ae97249ac786fa","url":"xml/local-search.xml"}].map(element => element["url"]); +const urls = [{"revision":"fff1431ac851297bad3665c5f1ccd81d","url":"2023/07/05/trace-of-line-01/index.html"},{"revision":"a69bf1467bd336821ea387fb22815e9b","url":"2023/07/05/zhihu-aac-old/index.html"},{"revision":"5851cf6be986595ce9f9640b52027fb1","url":"2023/07/06/zerotier-planet-convert/index.html"},{"revision":"c665153dc0da503aa498bd254d1b143b","url":"2023/07/10/trace-of-line-02/index.html"},{"revision":"2da38b30c0d970d0a264e11c56e8b020","url":"2023/08/04/permission-system-design-share/index.html"},{"revision":"92d624e5d824519a2fe752e84b5e81cc","url":"2023/08/04/test-latex/index.html"},{"revision":"b835b73c39f14d5a319869f7fafc88b3","url":"2023/08/31/cell-structure/index.html"},{"revision":"d0f7acb72d53ce9a3fe405cac61f57e7","url":"2023/10/03/busuanzi-bug/index.html"},{"revision":"d5f2aa690279f9f3bd20cb2886e8cfca","url":"404.html"},{"revision":"de1fae07085a27856aa408370d8f9f27","url":"about/index.html"},{"revision":"ac8a18cded285809e6b9e1aeb18198d2","url":"archives/2023/07/index.html"},{"revision":"d68b4f32d774c7ca42e5faea2f562bae","url":"archives/2023/08/index.html"},{"revision":"a6d46487dec226c01fe03884fc645624","url":"archives/2023/10/index.html"},{"revision":"c78f149b3e9e28dd8a8152a54f59bb2b","url":"archives/2023/index.html"},{"revision":"11196b37b5a023c21883efa793a36896","url":"archives/index.html"},{"revision":"242837d47be8b7c244eb3b8bfc38e027","url":"baidu_verify_codeva-0rhRRODu4H.html"},{"revision":"62b328640af6af42478c54f90e3b245b","url":"BingSiteAuth.xml"},{"revision":"ee82583e1cf1016cb15fe318a1b09cd3","url":"categories/index.html"},{"revision":"5ce280d86637a41c57fdc51fd463237a","url":"css/gitalk.css"},{"revision":"be3af4b8abf2074e66acb737867c43dc","url":"css/highlight-dark.css"},{"revision":"fdd56de5edd1e833674574fdc74bbfe7","url":"css/highlight.css"},{"revision":"7d6d29df18411568c1ae622605bc1907","url":"css/main.css"},{"revision":"71cb12d00310a7852b853744c41d9a34","url":"favicon.ico"},{"revision":"ea11c930cb20962f72c29f0e2931bfbd","url":"img/animal.jpg"},{"revision":"2d9aa61e592b26e2745f3c161c48c397","url":"img/avatar.png"},{"revision":"beb05a6b5b201044b6d80cacdf29f905","url":"img/default.png"},{"revision":"5603316bb5bc54a9d5cab14fddd4c510","url":"img/fluid.png"},{"revision":"4d772ced566ade339ca6718c7ed38674","url":"img/image-1.png"},{"revision":"dcfafd0cc238b0a63a733edd1a70bcfe","url":"img/image-2.png"},{"revision":"5ba9885de31a8d1e8df04a1d915b1069","url":"img/image-3.png"},{"revision":"3d2983fa8549bb6a93b7b905a6baea9c","url":"img/image-4.png"},{"revision":"55692e23130e9504505085798384e43e","url":"img/image-5.png"},{"revision":"88c5e4fa4dec4b514a5d0d53b72d75c7","url":"img/image-6.png"},{"revision":"e52801ec8fe9abad24f24c8d96402fb3","url":"img/image-7.png"},{"revision":"3f940453e65f4635917f162b9a1d1432","url":"img/image-8.png"},{"revision":"47c43a3db8dca516e147f6f38324c1eb","url":"img/image-9.png"},{"revision":"18a13cfe951c406bbb4da3a7e7bc8ca2","url":"img/image.png"},{"revision":"a88a6883f6f27cd7b95a3ae753f91a40","url":"img/img-20231004-chrome-busuanzi.png"},{"revision":"f6f63a28b80c91ec49153f37df82f42d","url":"img/img-20231004-safari-busuanzi.png"},{"revision":"15657539044e11a19a1c6c7e3073d1b3","url":"img/loading.gif"},{"revision":"1b164cde9b70a49e2f3831d211be9f66","url":"img/plant.jpg"},{"revision":"b769e8dfde5660239317ed60758dba13","url":"img/police_beian.png"},{"revision":"74669a1c8e0c10b60ff13c2430adae44","url":"img/prokaryotic.jpg"},{"revision":"c5ef5561d9ed2d3458fa18b30311b792","url":"index.html"},{"revision":"7683fab2fc9d03a3a659aa956b3a54e8","url":"js/boot.js"},{"revision":"605f587be2ab3d36472bb03ac27ede65","url":"js/color-schema.js"},{"revision":"7fa076a71a5559d89af6b0c6dfd3a0d2","url":"js/events.js"},{"revision":"a62feede0189fe66290e8959528b674f","url":"js/image-ng.js"},{"revision":"fab30a410e5f490fce3f977a6936a714","url":"js/img-lazyload.js"},{"revision":"fb4a815ccdb5d851d00561dbb62251c4","url":"js/leancloud.js"},{"revision":"9dc47a0b7b6bacfd16541c9b2b5b6bc5","url":"js/local-search.js"},{"revision":"6c10bee3f659ca91b534bf4a81d62f1e","url":"js/plugins.js"},{"revision":"bc2f15d100bdd8e7ecbaf2ca670a714f","url":"js/progressbar-done.js"},{"revision":"8a36a7c42b0d15eb06cbdef6c03dd803","url":"js/statistics.js"},{"revision":"f7ce9014de1cd7358eeb3aba81c8efe2","url":"js/utils.js"},{"revision":"2222fa803fc54e3ad34428f800b01bd6","url":"links/index.html"},{"revision":"21168ee9f5275246e815d6b7c4131f71","url":"local-search.xml"},{"revision":"d44e23d58dbd7698069d517424bb92e9","url":"sitemap.xml"},{"revision":"f05d38eed1d483463ffd6bac51232d90","url":"tags/busuanzi/index.html"},{"revision":"e29561d74122ca8f466de517c4a71d46","url":"tags/cxzlw/index.html"},{"revision":"192d2b9f8808ae4fdb3ea3d9f0054f12","url":"tags/Fluid/index.html"},{"revision":"0dc62477291421d7d74c6c22473623f1","url":"tags/Hexo/index.html"},{"revision":"84acf6d54fac364406a434404a1661d9","url":"tags/index.html"},{"revision":"474532f501dec5f8fe89cd89a45db899","url":"tags/Python/index.html"},{"revision":"85861807d17bb370fa81020947d49cae","url":"tags/Zerotier/index.html"},{"revision":"719f6aac27630244d45b1a33a19fb5d3","url":"tags/不蒜子/index.html"},{"revision":"2b278f13f1699bf348b193e3d5fecce2","url":"tags/反爬/index.html"},{"revision":"fd7477076af9eba95f0bd69edb14e971","url":"tags/小说/index.html"},{"revision":"50c5a6485a5d1fc654ba814e85524cf9","url":"tags/权限系统/index.html"},{"revision":"a0649ac16eeef1d6aeadefaa6eae520f","url":"tags/知乎/index.html"},{"revision":"0373b76c97835c62548e8ac46a569280","url":"tags/离谱网文/index.html"},{"revision":"4f929ad6ef0352590312fff328445ba8","url":"tags/自建-Planet/index.html"},{"revision":"962a16241c7c1a6f3aac186ddd28f885","url":"tags/路过的某个学渣/index.html"},{"revision":"f977ce1e6a88c6b52e6c2130e43e2550","url":"tags/飞石/index.html"},{"revision":"decd4b8f6af7e1c9d8ae97249ac786fa","url":"xml/local-search.xml"}].map(element => element["url"]); const index_urls = urls.filter(url => url.endsWith("index.html")).map(url => url.substring(0, url.length - 10)); warmStrategyCache({urls:urls, strategy:staleWhileRevalidate});