Step 1: Log into WordPress dashboard.
Step 2: Navigate to Plugins > Add new > Wordfence.
Step 3: Once the plugin is activated click on Firewall on the left pane under plugin options.
Step 4: Switch to the Blocking tab.
Step 5: Select block type as IP address and then enter the IP address.
Step 6: Click on Block this IP address button.