Use Cloudflare pages function to achieve CNAME access

888u

Last update at :2024-02-11,Edit by888u

Another method: CloudFlare uses CNAME to access domain name resolution for free through SaaS. This article talks about how to use Cloudflare pages function to achieve CNAME access:

1. First go to https://github.com/xyTom/cf-page-func-proxy to download or Fork the repository

2. Modify the url.hostname in the warehouse_worker.js to the URL you need to reverse generation or need cname access, and choose the IP address of your choice

3. Then open Cloudflare Dashboard, enter the Pages management page, and select Create Project. If you choose to fork this warehouse in the first step, select 1 Connect to Git. If you choose to download this warehouse in the first step, Then choose 2 Direct Upload

Bind a custom domain name

1. Enter the Cloudflare Pages management page, select the Pages project you just created, and click on the name to enter the project settings page

2. Select the custom domain tab on the page

3. Choose to set up a custom domain

4. Enter the domain name to be bound on the page and click Continue. The domain name here can be a subdomain name

5. Select Start cname setting in the setting method

6. Follow the instructions given on the page to modify the DNS resolution record at the DNS service provider to complete the custom domain name binding

Wait for a while. After the resolution takes effect, you can access it through the bound domain name. The domain name bound in this way is cname access. In theory, you can choose your own IP

Recommended site searches: domain name transfer, registration information, US server, personal virtual host, free virtual space, domain name purchase, expired registered domain name, domain name registration query, domain name trading network, free domain name application,

Use Cloudflare pages function to achieve CNAME access

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码