这里记录一下最近玩的 CloudFlare Partner 自选 IP 及如果撸 cloudflare Pro。
前期准备:
1、免费的智能DNS解析:dnspod、cloudxns、dns.la、dns.com等,这里使用的是dnspod。
2、cloudflare partener 平台。注:CloudFlare Partner 使用的是github 开源代码搭建的,保证不会记录您的任何信息。
2、cloudflare partener 平台。注:CloudFlare Partner 使用的是github 开源代码搭建的,保证不会记录您的任何信息。
部署方法:
1、如果你的域名注册商无智能DNS解析服务,请使用可以智能DNS解析的服务商这,里使用的是dnspod,请把域名注册商处的 Nameservers 改为f1g1ns1.dnspod.net和f1g1ns2.dnspod.net即可。
2、注册一个dnspod帐号并在dnspod处添加你的域名。
3、使用 “nslookup -qt=ns mydomain.com” 查询,确保域名的Nameservers已为dnspod的。
4、登入CDN管理平台(如果没有,CloudFlare帐号会自动注册一个)增加一个域名。目前只支持主域名,
5、“提交”后点击“添加新记录”。
-------------------------------------------------------------------
Cloudflare CNAME Setup
This project allows Cloudflare Hosting Partner to provide a panel for customers, which allows customers to have CNAME setup for free.
cf.tlo.xyz is the site installed the stable version of this panel. The software is up-to-date, and you can trust.
Notice: The Host API key of [cf.tlo.xyz][4] seems to be disabled by Cloudflare. As a result, this site lost the ability to login with Cloudflare password and adding new (CNAME setup) domains. Existing users who already have CNAME setup domains (provided by any partner), might still use this site to manage their domains’ DNS record. However, they must use global API keys instead of passwords.
Installation
If you don’t want to use the preinstalled panel above, you can install this panel on your server. For more information, please see the Wiki.
Features of this panel
- Manage all your DNS records in one place. Using the Cloudflare API v4, this project supports various types of DNS records.
- Advanced Analytics. You can see the analytics report for a whole previous year, rather than a month.
- Supports NS setup. This panel provides NS setup information so you can switch to Cloudflare DNS at any time. You can also find your DNSSEC feature is also supported.
- Supports IP setup. This service provides the anycast IPv4 and IPv6 of the CDN. You can safely use this service on the root domain.
- Supports mobile devices.
- Supports multi-languages.
How to switch to this panel from NS setup
- Backup your existing record
- Switch your domain to another DNS services and restore the DNS record (Optional)
- Delete your domain on Cloudflare (Might have downtime if you have not done step 2)
- Re-add your domain on the panel
- Setup the DNS records on this panel
- Delete the existing DNS record and CNAME to Cloudflare (Only if you have done step 2)
Advantages for CNAME setup
- You can use any DNS provider you like, which is much more flexible.
- Use Cloudflare CDN as a backup server or use multiple CDNs.
- Support fourth-level subdomain SSL for free! For example, the domain like
dev.project.example.com
is ready for HTTPS. This is because, for CNAME setup, the Cloudflare issues the SSL for SaaS, which is an SSL separately for each sub-domain immediately.
Advantages when you use Cloudflare
You don’t need to install any software on your origin. Just configure your origin server information on the panel, delete the existing DNS record and CNAME to Cloudflare or switch to Cloudflare DNS, and you are done!
- Unmetered Mitigation of DDoS
- Global CDN. Your website will be much faster.
- I’m Under Attack™ mode
- Always Online ™
- Page Rules included. You can customize the cache behavior, set up 301/302 redirect, and much more.
Screenshot
Open-sourced software used in this project
This project was based on a HOSTLOC topic.
- jQuery | MIT License
- popper.js | MIT License
- Bootstrap | MIT License
- Chart.js by Nick Downie | MIT License
- Guzzle by Michael Dowling mtdowling@gmail.com | MIT License
- PSR Http Message by Framework Interoperability Group | MIT License
- Composer | MIT License
- Net_DNS2 by Mike Pultz mike@mikepultz.com | BSD-3-Clause License
- PHPMailer by Free Software Foundation, Inc. | GNU Lesser General Public License
- Cloudflare SDK by Cloudflare | BSD-3-Clause