Block spammy traffic

I have been getting spammy traffic from something like this. Can anyone confirm where is it coming from? how? and how to block the same?

You need a Web Firewall that can filter bad traffic at DNS level.

  1. Using Sucuri, enable aggresive bot filter at Firewall settings. It can help.

  2. If you are using Cloudflare there is a better way to handle this problem.
    For example, if you want to block specific domain referer traffic. You can implement this way.

    Cloudflare > Firewall

1 Like

I blocked the user agent of the bad user as it showed there in firewall using block user agent in firewall menu. Will that do the trick as well?
As most spam was coming from 2 specific useragent of mozilla and python where as my usual traffic is mostly chrome and safari