How to block ip attack all my website in my server

how to block ip attack all my website in my server
when i try add this ip 2a01:4f9:3a:1b92::2 i see this error

For a quickaround until thats fixed, instead of going to
Server → Security → CSF

Go instead to
Server->Security-> Firewall

Write the IP at the “Quick Deny” textbox, like in the image bellow and then click the “Quick deny” button.


deny2

Edit:
To enable IPv6, go to this location:
Server->Security-> Firewall

Under “csf - ConfigServer Firewall” click “Firewall Configuration”

Scroll down until “IPv6 Port Settings”
Under it will show “IPv6 = Off”. Change it by clicking the “On” button.

Scroll all the way down to the bottom of the page.
Click the “Change” button to save, and then the “restart csf+lfd” button.

If you have a big list and wanna add them all at once (one per line) you can do it manually by adding to the file:

/etc/csf/csf.deny

1 Like

thank you for replay, how to add more ip

You can just repeat the same process, as it will add to the blocklist that way.

Or if you have a big list and wanna add them all at once (one per line) you can do it manually by adding to the file:

/etc/csf/csf.deny

1 Like

thank you sir

question how did you found out u have been attacked :handshake: by the IP, please share it so we all know.

1 Like

Cloudflare → Security → Overview and see all ip attack your website and don’t forget to delete your ip in dns txt to stay safe

deny failed: [2a01:4f9:3a:1b92::2] is valid IPv6 but IPV6 is not enabled in csf.conf
how to fix this

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