Denying all access from a country

What are best practices for denying access from a country – say, China? I'm using UFW. I'm seeing a lot of access from Chinese IPs that isn't legitimate and don't expect much (if any) legitimate access, so this seems like it might be prudent. Thanks.

1 Reply

Use CSF or generate rules using the tool

http://www.ip2location.com/blockvisitorsbycountry.aspx

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct