sudo ufw insert 1 deny from 203.0.113.99

Category: VPS Management

sudo ufw insert 1 deny from 203.0.113.99

Insert a deny rule at the top of the list

insert 1 places the rule first, and that ordering matters because ufw evaluates rules in order and the first match wins — a top deny beats a later allow for the same traffic. This is the quick way to block a specific abusive IP without reordering everything. Verify the new order with ufw status numbered.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.