大网数据广告活动
网站运营与故障问答

How to use CloudFlare and web host at same time?

· 52CE 我爱测

I'm trying to set up a (.tk) website for a school project using 000WebHost , but at the same time I want to integrate CloudFlare DDoS protection into my website as well. The two ways to hook up a domain name to 000WebHost are to …

问题原文

原帖链接 · LjMario007 · CC BY-SA 3.0

I'm trying to set up a (.tk) website for a school project using 000WebHost, but at the same time I want to integrate CloudFlare DDoS protection into my website as well. The two ways to hook up a domain name to 000WebHost are to either 1) add a CNAME record that points to the free subdomain 000WebHost provides (your-domain.000webhostapp.com) or 2) change your DNS nameservers to 000WebHost's own.

But in order to use CloudFlare you need to either change your nameservers to Cloudflare's own or add a CNAME record to CloudFlare themselves. The thing is that the registrar for .tk domains (Freenom [sorry, can't post a third link because I have under 10 rep]) only allows you to use CNAME records or different nameservers, you can't have both different namservers and CNAME records at the same time.

Ideally, I would have a CNAME pointed at 000webhostapp.com and my nameservers pointed at Cloudflare, but I can't do that due to said restrictions. So my question is: is there some way to circumvent Freenom's restrictions and use a CNAME and different nameservers at the same time, or should I jump ship to a Cloudflare Partner's web hosting service i.e. Free Virtual Servers (sorry, again I can't post a link) so I can just activate CloudFlare through cPanel without changing the nameservers or adding CNAME records?

已采纳解答

原帖链接 · Oscar · CC BY-SA 3.0

For anyone else searching for this,

You can change your dns from Freenom to CloudFlare (or whatever DNS you want) by going to Manage domain > Management Tools > Nameservers and use CloudFlare's nameservers

and in CloudFlare, you can use the DNS system that they got to point to 000webhost [cname]

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。