1. Knowledge Base
  2. >
  3. Results
  4. >
  5. How Do I Deny IP Address Access in Plesk?

How Do I Deny IP Address Access in Plesk?

Unfortunately, there is no method for blocking traffic per IP address in Plesk. The following methods will assist you with blocking IP addresses when using Plesk depending on your server type.


If you have Windows shared hosting, please reach out to us via phone or Live Chat for assistance.

If you have administrator access on Windows dedicated server hosting, you can block an IP address with Windows Firewall.

To block an IP address:

  1. Log in to your server via Remote Desktop.
  2. Click on Start, then type "firewall."
  3. Select Windows Firewall with Advanced Security.
  4. On the left side of the firewall window, click on the Inbound Rules option.
  5. On the right-hand side of the screen, click on New Rule.
  6. Click on the Custom radio button and then click the Next button.

    Remote Destop Custom Rule

  7. Make sure the All programs radio button is selected, then click Next.
  8. On the Protocol and Ports options, leave everything at its default and click Next.
  9. On the Scope tab, there will be two boxes:
    • Top box - For local IP addresses
    • Bottom box - For remote IP addresses

    In this scenario, we are blocking an outside (remote) IP from accessing anything on the server, so we will need to add the IP address to the bottom box only as it will not be a local IP address.

  10. Click on the radio button that says These IP addresses in the remote section as illustrated below.

    Windows Firewall  Scope tab

  11. Click the Add button.
  12. In the next window, we will be adding a single IP address to the rule, but you can also add an entire range if necessary.

    Windows Firewall block an IP address

  13. Click OK, then click Next.
  14. Select the Block the connection radio button on the next screen and then click Next. 

    Window Firewall Block Connection Section

  15. Leave all of the options on the next screen checked as this will block the IP address regardless of which connection type they are trying to use. Click Next.

    Window Firewall blocked connection profile

  16. Enter a name for the rule and click Finish.

Legacy Linux VPS with Plesk

If you have Linux hosting, you can simply create the IP deny rules in your .htaccess file.

allow from all
deny from #ex-employee
deny from #visitor spamming comments


deny from all
allow from #my office
allow from #my house

See the article on How to Edit Your .htaccess File for generic instructions that apply to all .htaccess changes.