GA4's own filters exclude traffic before it lands in reports. Useful as a second line for the cases you don't control, such as a hard-coded measurement ID someone forgot to remove.
Internal traffic. Define your office or VPN ranges under Admin, Data Streams, your stream, Configure tag settings, Define internal traffic. Then switch the built-in Internal Traffic filter to Active under Admin, Data settings, Data filters.
Developer traffic. GA4 ships a filter for events arriving with debug_mode=true. Set it to Active if you don't want DebugView events in your reports.
Two caveats: data filters apply going forward only, so they never clean history, and they are property-wide with no per-stream override. Use them to mop up edge cases, not as your main defence.