I am using LiveView for some of my pages on my website. I noticed those pages getting hundreds of requests from the same IPs. This happens on most of the LiveView pages and from different IPs. Each request is about one minute apart (see logs below).
I cannot get to reproduce this behavior so I have no idea how to fix this. Has anybody experiences this before?
My guess is that the websocket connection gets disconnected? Is there a way to stop a LiveView page from attempting to reconnect after like ~10 disconnects?
Example page: https://listudy.org/en/motif
Code: https://github.com/ArneVogel/listudy/blob/master/lib/listudy_web/live/motif_search_live.ex
About the server setup: the app is running on my server with Caddy in front of it.
Small exerpt from the logs, this ip has made 467 of these request alone today.
SAME_IP - - [01/Dec/2020:09:51:47 +0000] "GET /en/motif HTTP/2.0" 200 3189 - "https://listudy.org/en/motif"
SAME_IP - - [01/Dec/2020:09:52:47 +0000] "GET /en/motif HTTP/2.0" 200 3193 - "https://listudy.org/en/motif"
SAME_IP - - [01/Dec/2020:09:53:39 +0000] "GET /en/motif HTTP/2.0" 200 3192 - "https://listudy.org/en/motif"
SAME_IP - - [01/Dec/2020:09:54:32 +0000] "GET /en/motif HTTP/2.0" 200 3192 - "https://listudy.org/en/motif"
SAME_IP - - [01/Dec/2020:09:55:17 +0000] "GET /en/motif HTTP/2.0" 200 3190 - "https://listudy.org/en/motif"
SAME_IP - - [01/Dec/2020:09:56:17 +0000] "GET /en/motif HTTP/2.0" 200 3189 - "https://listudy.org/en/motif"