Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to block an IP address in Plesk Firewall

 
firewallgointerfaceiplinux

Question

How to block an IP address in Plesk Firewall?

Answer

 

For Plesk on Linux

 

  1. Log in to Plesk.

  2. Go to Tools & Settings > Firewall.

    Note: If Firewall is not available, install it using the instructions from this KB article.

  3. Click Modify Plesk Firewall Rules.

    Note: If Plesk Firewall is not enabled, click Enable Firewall Rules Management and follow the on-screen instructions.

  4. Click Add Custom Rule.

  5. Fill in the Name of the rule field, set Match direction according to the requirements and choose Deny in the Action field:

    Screenshot.png

  6. Set the port or the port range, mark TCP or UDP protocol according to the needs and click Add. Added ports will appear in the table on the left side:

    Screenshot_2.png

    Note: If no ports were specified, the rule will be applied to all ports.

  7. Add the required IP address to field Add IP address or network: and click Add. The added IP addresses will appear in the table on the left side:

    Screenshot_3.png

  8. Click OK.

  9. Click Apply Changes.

 

For Plesk on Windows

 

  1. Log in to Plesk.
  2. Go to Tools & Settings > Firewall.

  3. Click Firewall Rules.

  4. Click Add Firewall Rule.

  5. Make sure the checkbox Switch on the rule is active. Fill in the The rule name field, set Profile according to the profile of the network interface (mark all of them if there are no confidence of which profile is in use):

    border_plus_Capture.PNG

  6. Choose Deny in the Action field, set the port or the port range, mark TCP or UDP protocol according to the needs:

    border_plus_Capture2.PNG

  7. Add the required IP address to field Add IP address or network: and click Add. The added IP addresses will appear in the table on the left side:

    border_plus_Capture3.PNG

  8. Click OK.

 

Additional Information

Examples

 

To block an access to websites for a specific IP address

 

Match Direction: Incoming

Action: Deny

Ports:

  • TCP 80
  • UDP 80
  • TCP 443
  • UDP 443

Sources: 203.0.113.2

 

To block incoming mail from a specific IP address

 

Match Direction: Incoming

Action: Deny

Ports:

  • TCP 25
  • UDP 25
  • TCP 465
  • UDP 465

Sources: 203.0.113.2

 

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

How to Check Open Ports in Linux (Simple Commands & Tools)

Read More »

Linux Logs Explained

Read More »

How to Host a Go App on Plesk

Read More »
Knowledge Base

Unable to issue a Let’s Encrypt certificate for a domain or its mail in Plesk: the DNS challenge used another IP address

Read More »

Websites on Plesk server are slow or show error 500 or PHP mail cannot be sent: ap_pass_brigade failed

Read More »

Let’s Encrypt notification mail: Your certificate (or certificates) for the names listed below will expire in days

Read More »

Mail stuck in the queue in the server with Plesk: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (13)

Read More »

Hosting Wiki

  • Django
  • DBMS Interface
  • QMAIL
  • Sendmail
  • Linux Containers
  • Google Cloud CDN
  • Windows Server
  • Linux
  • JavaScript
  • MongoDB
  • Plesk
  • IPv6
  • IPv4
  • SIP
  • UDP/IP
  • Firewall
  • Network Bandwidth
  • Email Autoresponder
  • Mailing Lists
  • Email Alias
  • Email Virus Protection
  • Email Forwarding
  • Webmail
  • TCP/IP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family