Utilized the previously released siteproxy: https://k7blog.com/6.html
I have always used cloudflare worker deployment, previously for convenience when needed.
Recently found that the worker.js file has been updated, originally unable to directly access YouTube for playback, only able to play through an embedded player.
This issue has now been fixed, and now I have also discovered the ability to customize the homepage.
Tutorial Begins#
Visit GitHub to download the js file: https://github.com/netptop/siteproxy/tree/master/build
Open the cloudflare official website, log in to your account, find the worker, and add a service, then click on quick edit.
Paste the js file, search for siteproxy.netptop.workers.dev and replace it with your domain.
Worker - Triggers - Custom Domain (you can add a custom domain for your service, so you don't have to use the default cf domain. ps. assuming your domain is already hosted on cf.)
Then search for www.netptop.com and replace it with the homepage domain you want to display. If you replace it with www.baidu.com, then opening this proxy service will show the Baidu page.
This way, we can create our own homepage, replace it, and achieve the effect of a custom homepage. (Initially, I wanted to add password access for myself.)
Also, note that this proxy can only proxy absolute paths. When creating your own homepage, make sure that js and css are absolute paths, otherwise errors will be displayed.
Once you have completed the above steps, the setup is successful. The address I set up for myself: https://proxy.k7blog.com
Source Code: https://k7blog.com/115.html