Protect a website
Using Cloudflare for web and TCPShield for Minecraft
This guide will show how to have a website protected with Cloudflare and a Minecraft protected with TCPShield. This guide assumes you have a domain on Cloudflare already.
First, we need to protect our web server with Cloudflare. Let's log into Cloudflare and do that.
Click here when you login
Now we will add our web server to Cloudflare. First we need to see if there are any DNS records already pointed to
@(the base domain) or
127.0.0.1 is an example in this case
Now, we will add our web server to cloudflare and proxy it. We can do that like this.
Create the new DNS record
Now we have protected our website on Cloudflare! Now we will make sure players can still connect with
example.comusing no subdomain.
Create a new DNS record like this
Create a new DNS record for the target
Now we make it so
example.comtakes you to your server on Minecraft. Copy the steps below.
Copy the settings above
IMPORTANT: The port on the SRV record has to be 25565. That's the port TCPShield is listening on, not your backend port.
It's as easy as one two three.