Block ports on a subdomain


#1

I have domain that routes through cloudflare and then a subdomain that route directly to server because its purpose is not viewing webpages.

How do I block ports on ONLY subdomain using cloudflare, like ports 80/443?


#2

You cant. You could place the part for the subdomain on a different port though.


#3

Only :orange: the DNS record for the domain which needs to be proxied by Cloudflare. :grey: records will go direct to origin and bypass Cloudflare.


#4

That was my understanding of what Ivan referred to as “route directly”.


#5

Sandro, how would I place the subdomain on a different port? I not see any editing options for subdomains.


#6

You dont place it, you simply make your service listen on that port. But you have to make sure the respective entry is :grey: in Cloudflare, hence the actual IP address gets resolved.


#7

I can’t enable the cloud because the subdomain is game traffic. That is why I make subdomain pass thru direct to server. Hmmm, well I wonder if there is way to block ports server side with traffic coming subdomain. This might be tricky.


#8

This topic was automatically closed after 14 days. New replies are no longer allowed.