C

Open-source alternative to CTFd hosting

Self-hosted CTFd is the free alternative to CTFd’s paid hosting: the same open-source capture-the-flag platform, with challenges, teams, hints and a live scoreboard, run on your own server with no monthly fee. The hosted plans look after the server for you and add extras the free edition lacks, such as programming and multiple-choice challenges, SAML login and challenge containers.

Free app Code: Open source Import from CTFd hosting: Yes Some setup

Why look for an alternative to CTFd hosting?

CTFd's makers, CTFd LLC, run CTFd for you on paid hosted plans billed monthly: they host the platform for your capture-the-flag event, keep it updated, and add extras that the free edition lacks.

Organisers look for an alternative to the hosted plans when an event is small, run by a club or a class, or held every year, and a monthly fee is hard to justify. The same open-source CTFd runs on your own server with no hosting fee, as long as its free features cover your event and you are happy to look after the server.

How CTFd compares

Host capture-the-flag events with teams, hints and a live scoreboard.

The same open-source CTFd that the hosted plans run: challenges with flags, points, hints and files, dynamic scoring, teams or individual play, a live scoreboard with freezing, start and end times, and backups. The hosted plans add programming, multiple-choice and manually checked questions, Slack and Discord webhooks, SAML login and container-based challenge servers, which the free edition does not have, and they look after the server for you.

What you gain
  • No monthly bill for the platform, and no limit on players or events
  • Player accounts, flags and results stay on your own server
  • The same CTFd software the hosted plans are built on, so a CTFd backup can move across
What is different
  • CTFd comes with no challenges; you write them or bring your own
  • Challenges that need a live server to attack have to be hosted separately
  • Some hosted-plan extras are not in the free edition, such as multiple-choice and coding challenges, chat webhooks and single sign-on
Some setup Open source

Moving from CTFd hosting

If you already run an event on CTFd's hosting, export a backup from Admin, Config, Backup. On your own CTFd, finish the setup page, then import that backup from the same screen: challenges, users, teams, solves and pages come across. The import replaces everything already in the new CTFd, and it cannot go into an older CTFd version than the one it came from. Challenges that use hosted-only features, such as programming questions or challenge containers, will not work. Set up email so players can confirm accounts and reset passwords, then test a challenge before the event starts.

Questions

What is the best open-source alternative to CTFd hosting?

CTFd is the free, open-source alternative to CTFd hosting for running capture-the-flag events in the catalogue today. The same open-source CTFd that the hosted plans run: challenges with flags, points, hints and files, dynamic scoring, teams or individual play, a live scoreboard with freezing, start and end times, and backups. The hosted plans add programming, multiple-choice and manually checked questions, Slack and Discord webhooks, SAML login and container-based challenge servers, which the free edition does not have, and they look after the server for you.

Can I move an event from CTFd's hosting to my own server?

Yes. Export a backup from the hosted CTFd and import it in Admin, Config, Backup on yours. The import wipes the new CTFd first, and data for hosted-only features does not work.

Which CTFd features are only on the hosted plans?

Programming, multiple-choice and manually checked questions, Slack and Discord webhooks, SAML login, IP restrictions, container-based challenge servers and an event statistics report. The free edition covers flag challenges, hints, teams, scoring and the scoreboard.

Does CTFd come with challenges?

No. You write your own or bring existing ones; CSV import can load challenges in bulk. Challenges that need a live vulnerable server must be hosted separately.

Is CTFd really free compared with CTFd hosting?

Yes, CTFd is free. To run them you need Cloudgate and a server. Use hosted Cloudgate, which can also provide the server, or install Cloudgate on a server of your own for free. Cloudgate's plans and prices are at cloudgate.octabyte.io/pricing. One server can run several apps.

Do I need a developer to replace CTFd hosting?

No. Cloudgate installs CTFd on your server and gives it a secure web address, and you use it in your browser instead of CTFd hosting.