Skip to content
← Back to Community
How I put my repl on a free custom domain!!!
Profile icon
ExplosionScratc

Ok so I created https://slight.gq, which is my URL shortener. But the process was long and tricky to get right so I thought I'd share.

Step 1: Make your repl

Just make a repl or something you want to host.

Step 2: Get your domain

Go to https://freenom.com and create an account and register a domain. It's super simple. Once you have your domain click "manage domain":
image
Now go to "name servers":
image

Leave this tab open and continue to the next step.

Step 3: Register on cloudfare

Make/login to your cloudfare account, then click "add site":
image

Now add your site you registered on freenom:
image

Step 4: Add cloudfare nameservers.

Select free plan (or paid if you want) on cloudfare and continue until you get to the "Looking up existing DNS records" this step for some reason takes forever for me. So I just clicked here:
image

There it should say to change the name servers and remove freenom.com ones. Go back to your freenom.com tab with nameservers and add the ones that cloudfare lists:
image

Step 5: Connect to your repl

In your repl click add custom domain (the pencil icon) and then add your website (without https or www) and then copy the some-hash-here.repl.co thing it gives you. Now go back to your cloudfare tab and go to DNS:
image

Now you want to add a CNAME record to your DNS:

image

IMPORTANT make sure you click the "proxied" icon so it changes to "DNS only" this is important to make sure your website doesn't infinite loop (idk why it did this). Also if you want just https://yoursite.whatever instead of https://www.yoursite.whatever replace "www" with "@".

Now add that record and go back to the repl page and click "next" then "finish linking" and wait for it to link.

πŸŽ‰ ALL DONE!!!! πŸŽ‰

Now you have a custom website! Post a comment if you want help with something!

Voters
Profile icon
retronbv
Profile icon
zelferry
Profile icon
Highwayman
Profile icon
ExplosionScratc
Comments
hotnewtop
Profile icon
retronbv

freenom is bad because if your site gets popular they revoke it and show ads so they get money

Profile icon
ExplosionScratc

@retronbv WHAT I REFUSE TO BELIEVE THAT BUT I STILL SORT OF DO >=(

Profile icon
retronbv

@ExplosionScratc I haven’t experienced it but other people on repl have

Profile icon
swagcode

freenom does not work for me.

Profile icon
zelferry

I cannot create an account on freenom.com! :(

Profile icon
JordanLee29

@zelferry THere is an extremely easy way to make an acount just search up anything you want for example if you want your url to be hello.ml search hello.ml with the.ml thing. Then click checkout verify your email and then go to https://fakeaddressgenerator.org/usa_address_generator for your info