How can I disable Render's health check GET request to `/`?

How can I disable the GET request to /?

Checking my logs:

Nov 30 11:07:55 AM  16:07:55.025 request_id=FrxesCFxpweEqUAAAAhB [info] Sent 200 in 1ms
Nov 30 11:07:55 AM  16:07:55.095 request_id=FrxesCWwwHOAHRsAAAiB [info] GET /health
Nov 30 11:07:55 AM  16:07:55.095 request_id=FrxesCWwwHOAHRsAAAiB [info] Sent 200 in 273µs
Nov 30 11:07:55 AM  16:07:55.155 request_id=FrxesClGQgwQgSsAAAih [info] GET /
Nov 30 11:07:55 AM  16:07:55.156 request_id=FrxesClGQgwQgSsAAAih [info] Sent 200 in 1ms
Nov 30 11:07:55 AM  16:07:55.168 request_id=FrxesCoKJY0irpsAAAjh [info] GET /
Nov 30 11:07:55 AM  16:07:55.169 request_id=FrxesCoKJY0irpsAAAjh [info] Sent 200 in 1ms
Nov 30 11:07:56 AM  16:07:56.032 request_id=FrxesF2Okhp30gsAAAkh [info] GET /
Nov 30 11:07:56 AM  16:07:56.034 request_id=FrxesF2Okhp30gsAAAkh [info] Sent 200 in 1ms
Nov 30 11:08:00 AM  16:08:00.097 request_id=FrxesU_PVolz5cEAAAlh [info] GET /health
Nov 30 11:08:00 AM  16:08:00.097 request_id=FrxesU_PVolz5cEAAAlh [info] Sent 200 in 273µs
Nov 30 11:08:05 AM  16:08:05.096 request_id=FrxesnnC_OG7fBsAAAmB [info] GET /health
Nov 30 11:08:05 AM  16:08:05.096 request_id=FrxesnnC_OG7fBsAAAmB [info] Sent 200 in 290µs
Nov 30 11:08:10 AM  16:08:10.095 request_id=Frxes6PCKCavXo4AAAmh [info] GET /health
Nov 30 11:08:10 AM  16:08:10.095 request_id=Frxes6PCKCavXo4AAAmh [info] Sent 200 in 298µs
Nov 30 11:08:15 AM  16:08:15.095 request_id=FrxetM3G8J-L2PoAAAnB [info] GET /health
Nov 30 11:08:15 AM  16:08:15.095 request_id=FrxetM3G8J-L2PoAAAnB [info] Sent 200 in 275µs
Nov 30 11:08:20 AM  16:08:20.096 request_id=FrxetffhK1lyRhoAAAnh [info] GET /health
Nov 30 11:08:20 AM  16:08:20.097 request_id=FrxetffhK1lyRhoAAAnh [info] Sent 200 in 261µs
Nov 30 11:08:25 AM  16:08:25.095 request_id=FrxetyHOzXPeDBcAAAoB [info] GET /health
Nov 30 11:08:25 AM  16:08:25.095 request_id=FrxetyHOzXPeDBcAAAoB [info] Sent 200 in 237µs
Nov 30 11:08:30 AM  16:08:30.095 request_id=FrxeuEvfLfGdI7sAAAoh [info] GET /health
Nov 30 11:08:30 AM  16:08:30.096 request_id=FrxeuEvfLfGdI7sAAAoh [info] Sent 200 in 291µs
Nov 30 11:08:35 AM  16:08:35.096 request_id=FrxeuXXltwpcGdMAAApB [info] GET /health
Nov 30 11:08:35 AM  16:08:35.096 request_id=FrxeuXXltwpcGdMAAApB [info] Sent 200 in 304µs
Nov 30 11:08:40 AM  16:08:40.095 request_id=Frxeup_hP_Ogwx0AAAph [info] GET /health
Nov 30 11:08:40 AM  16:08:40.095 request_id=Frxeup_hP_Ogwx0AAAph [info] Sent 200 in 323µs
Nov 30 11:08:45 AM  16:08:45.101 request_id=Frxeu8pK7eW4OQYAAAqB [info] GET /health
Nov 30 11:08:45 AM  16:08:45.102 request_id=Frxeu8pK7eW4OQYAAAqB [info] Sent 200 in 315µs

Render is properly hitting my /health endpoint, but every so often it’s hitting / and polluting my mixpanel anonymous user metrics, as it counts a bot hit as an anonymous user (on my backend server).

Is there a way to stop Render doing a GET / request?

Could that request to / be a legitimate request? How have you identified it as a request from us?

John B

It’s perfectly timed on intervals, and also I can see the request headers coming in with Render/1.0 as user agent.

I’d like to disable the hit to / entirely that Render is doing.

Upon further inspection it seems the hit to GET / is coming from somewhere else! Sorry!

No worries, that was a bit of a head scratcher :slight_smile:

John B