Block unwanted domains hitting my domain

Hi, I want to block unwanted domains hitting my domain. I have a django app running and are being spammed with alerts like these . ERROR (EXTERNAL IP): Invalid HTTP_HOST header: ''. You may need to add u'' to ALLOWED_HOSTS

Can you please assist how I can achieve this from cloudflare.

What is your domain?

Hey Sandro, not feeling completely at ease posting domain on public forums. Why do you need this?

Because a request with that domain should never reach your server through Cloudflare. If that actually happens they must access your machine directly, bypassing Cloudflare.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.