# How to Block an IP Address from your Website Wordpress

> To block an IP address in WordPress, navigate to Settings, select Discussion, and scroll down to Disallowed comments. Enter the IP addresses, keywords, and usernames you want to block into the empty field. Finally, click the Save button to secure the changes and wait for the success notification.

Canonical: https://livedemo.ai/tutorials/how-to-block-an-ip-address-from-your-website-wordpress/
Apps: WordPress
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a2fe2d673bd5aa8e62789/preview?step=1

## Steps

1. Head over to your WordPress dashboard and navigate to the 'Settings' option.
2. Select 'Discussion'.
3. Scroll down and go to 'Disallowed comments'.
4. In the empty field, you can easily add the IP addresses, keywords, and usernames that you want to block.
5. Click on the 'Save' button to secure the changes to your website.
6. A notification pops up, once you have successfully updated your discussion settings.
