Learn to Code via Tutorials on Repl.it!

← Back to all posts
How to use and setup UptimeRobot
badvillain01 (101)

What is UptimeRobot?

Uptime Robot is all about helping you to keep your websites up. It monitors your websites every 5 minutes and alerts you if your sites are down.

its 100% free
It will keep your server up until your server ran into problems.

For more info click here

UptimeRobot setup

Once you log into your UptimeRobot account.

Go to Dashboard (default screen for uptimerobot is dashboard)
To add new link. Click Add New Monitor


Once you click that.
This Screen will popup

Now Select Monitor type HTTP(s).

Make sure type is HTTP(s) not ping or other

Now details popped up
like these


For Friendly Name enter what would you like to call your Monitor.
For URL (or IP) enter your web server link.

if you're using repl, it should look like this https://your-repl-name.your-username.repl.co, but with your repl name.

For Monitoring Interval, I'll suggest leaving it to the default value.

Now if you have all the info done. your page should look like this


Now you also have this box:

This means that if you select this, and your server is down or ran into any problems. UptimeRobot will alert you by sending an email.
I suggest you add alert notify

Now click Create Monitor
You have successfully created a monitor. Now your server will stay online, even if you're not running your code.

On your dashboard, your monitor will appear.

as you see, it showing that your server is down.
Your server is not down. To fix this just give it 1-2 min and reload your page.


There you go! Your Monitor is running.

mnmok (3)

I kept on having these issues where my monitor would go down with error 502 Bad Gateway. I discovered a way to fix it, and would definitely help people because I know that there must be other people looking for a solution.

repl.it will stop your project when the browser closes. Your browser fires an event when its closing so that each website/extension open knows it and can do stuff such as autosave, or in this case, shut off your project. I figured that we would need a workaround for that. By preventing the browser from sending an event that tells repl.it that its closing, the project will not shut off.

One way to do this is with the task manager on Windows. Just select the process (a.k.a. your browser) and kill the task. On Mac, you can also force quit the browser. And that's it, your repl.it project should stay online!

Note that you will have to do this for every time you close your repl.it project, it will not stay online forever after you've only done it once.

IsaacSantana3 (3)

I have a trouble. I did it with a Discord bot, but after a while, my monitor get down with the code (HTTP 502 - Bad Gateaway).

xSheriff (1)

So do i open my repl and run it and will it just stay running as long as uptime monitor is working

Rutherfordio (1)

I'm hosting my bot this way, it has a file that keeps and modifies member's points based on some commands they send. After some time hosting here (in less than a day) the datafile is restored and the data lost, anyway to fix that?

badvillain01 (101)

@Rutherfordio Nothing wrong with hosting. If you're using json file to store data, then data can easily get corrupted. So try to use an external database. I personally like to use mongodb.

Rutherfordio (1)

Thanks! Yes it's a json, weird it just happens while hosting here and not in my PC, I'll try mongodb!

gerile3 (0)

I know this is old post but can someone link me or elaborate how does this work ? I mean how does this uptimerobot makes repl work or keep it running thanks.

Amvil0921Roblox (0)

Try getting another link of the code, maybe you make a code with a non login account

Jeydin21 (102)

@gerile3 Basically, repl.it keeps a site online for 5 minutes and then turns it off when no one's using it to conserve computing power. Uptime Robot basically pings the server every 5 minutes to keep it online.
TL;DR: Uptime Robot yells at the site to keep it online every 5 minutes.