How do I get cloudflare on my domain using infinity free?

Hi!

I have a domain from freenom (xmdb.ml) and I’m trying to connect to cloudflare. Cloud flare it says you need to point the domain name servers to their ones but for my domain I need to point my nameservers to ns1.rf.gd and ns2.rf.gd. What do I do? Also please put it in simple talk cause I don’t understand what a CNAME is.

@Admin

Set the domain up with our nameservers first, add the domain to your account and then move it to Cloudflare’s nameservers. That’s the safest way to do it.

@Admin I don’t know how to add the domain to my account. I just switched the nameservers back to ns1.rf.gd and ns2 so how do I do it after it reactivates?

@xMdbMatt said:
@Admin I don’t know how to add the domain to my account. I just switched the nameservers back to ns1.rf.gd and ns2 so how do I do it after it reactivates?

How do you do what after what reactivates? What does the different times you say “it” refer to?

@Admin you say to just ‘add your domain to your account’. How do I do that?

@xMdbMatt said:
@Admin you say to just ‘add your domain to your account’. How do I do that?

Go to the Addon Domains or Parked Domains section in your control panel, or create a new account.

Thanks @Admin. I realised that there was cloudflare at the bottom in programs and services xD

My next question; how do you enable cloudflare on a sub domain

@xMdbMatt said:
Thanks @Admin. I realised that there was cloudflare at the bottom in programs and services xD

My next question; how do you enable cloudflare on a sub domain

Are you referring to a subdomain of your own domain or a free subdomain?

In case of the former: you need to use Cloudflare directly for that.

In case of the latter: you can’t, Cloudflare doesn’t support it.

@Admin ok thanks. Also, how do you get http://xmdb.ml to point to https://xmdb.ml without the redirect error? I’ve tried the redirect section but it showed the error when you tried to get to the domain.

A few different methods to do that are described here: https://infinityfree.net/support/how-to-force-all-traffic-to-https

Thanks @Admin. Yet another noob question xD

How come I can’t edit the .htaccess in the root?

And also, if I added a sub domain, how would I make the files static, as in if you go to download.xmdb.ml/hellotest.html, how do you make it downloadable and not runnable?

@xMdbMatt said:
How come I can’t edit the .htaccess in the root?

You can’t edit that .htaccess file because we specifically protect it against edits. You can however override it by creating your own .htaccess file in your htdocs folder.

@xMdbMatt said:
And also, if I added a sub domain, how would I make the files static, as in if you go to download.xmdb.ml/hellotest.html, how do you make it downloadable and not runnable?

I think you can use PHP to force the browser to download the file rather than show it. Or you could zip the file and let the user download the zip archive.