Skip to content
  • About
  • Contact
  • Docs
  • Features
  • Home

Configurations

5
  • Setup RAID Level 6
  • Setup RAID Level 5
  • How To Add Swap on RHEL or Centos based system
  • Website Migration to Non-Panel OpenLiteSpeed Server
  • Linux Server Performance Tuning

CyberPanel

9
  • Mounting /tmp on a Separate File
  • Updating CyberPanel Main VirtualHost Configuration
  • Updating CyberPanel vHosts Configuration
  • How to Change CLI PHP on CyberPanel
  • How to Update PHP Version to 8.1 in CyberPanel (From 7.3, 7.4, or 8.0)
  • CyberPanel Server Cleanup: Logs, Dumps, Backups
  • CyberPanel Full LSPHP Installation PHP 7.4 – 8.3
  • CyberPanel / OpenLiteSpeed: Clean LSPHP Session Files
  • SSL Certificate Management in CyberPanel via SSH

Hestia Control Panel

6
  • Fixing Email Bounce Back Issue in Hestia (Exim4 Blacklist Rejection)
  • Managing Fail2Ban in HestiaCP Server
  • Installing and Configuring PHP Versions in HestiaCP
  • phpMyAdmin Not Found in HestiaCP
  • Setting Up a Reverse Proxy for any Port in HestiaCP
  • How to Install Let’s Encrypt SSL in Hestia CP (Hostname, Admin Panel, and Email Server)

WHM/cPanel

6
  • Setting Up a Reverse Proxy on cPanel/WHM for Port 8081
  • How to increase the size of the cPanel-generated /tmp filesystem
  • Installing Old PHP Versions on a cPanel/WHM Server
  • Fixing “550: Your Country is Not Allowed to Connect to This Server” Error in Exim (cPanel)
  • Enable WP-CLI in CageFS on CloudLinux Servers (WHM/cPanel)
  • Securing /tmp and /var/tmp with a Dedicated Loopback Filesystem

Nagios

5
  • Service Checks
  • Uptime Checks
  • Disk Space Checks
  • Load Checks
  • Email Related Checks

WordPress

3
  • WordPress Core Reinstallation Guide
  • Managing WordPress Users via WP-CLI
  • Website Duplication, Migration, or Domain Change

Operating System

1
  • Server Reboot (RHEL or Centos based system)

AWS

1
  • How to Resize EBS Volumes on AWS

Databases

2
  • MySQL
    • Optimizing MySQL Performance
    • Recovering MySQL in Plesk When InnoDB Crashes

CloudLinux

4
  • Moving cagefs-skeleton directory
  • Enable WP-CLI in CageFS on CloudLinux Servers (WHM/cPanel)
  • Enable bc in CageFS on CloudLinux Servers(WHM/cPanel)
  • How to Upgrade MySQL 5.x to MySQL 8.0 on CloudLinux (WHM server) with MySQL Governor

Cloudflare

1
  • Configuring Security Headers in Cloudflare

ISPmanager

1
  • Install Free SSL (Let’s Encrypt) for domain.tld on ISPmanager with NGINX

Plesk

1
  • Plesk Admin Login Blocked – IP Restriction Recovery Guide

VPN

4
  • Install OpenVPN Open Source in Linux CentOS Ubuntu Debian Servers
  • Protected: OpenVPN Installation & Fix Wiki (CloudLinux / CentOS 7 & 8)
  • Outline VPN Installation & Management Guide
  • Installing AdGuard Home on Debian/Ubuntu (Docker)
View Categories
  • Home
  • Docs
  • Plesk
  • Plesk Admin Login Blocked – IP Restriction Recovery Guide

Plesk Admin Login Blocked – IP Restriction Recovery Guide

πŸ› οΈ Plesk Admin Login Blocked – IP Restriction Recovery Guide

❗ Problem

You see this error when trying to log in to Plesk:

Access for administrator from address your IP address is restricted in accordance with IP Access restriction policy currently applied.

This happens when your current IP address isn’t allowed under Plesk’s administrative access restriction policy.


🧠 Background

Plesk allows administrators to restrict access to the control panel based on IP addresses. This is controlled via:

Tools & Settings β†’ Restrict Administrative Access

If your IP is not on the allowlist, you’ll be blocked from logging in.


βœ… Solution Options


πŸ” Option 1: Add Your IP Address to the Allowlist (Recommended)

πŸ‘¨β€πŸ’» Purpose:

Grant access only to your current IP while keeping existing restrictions intact.


🐧 On Linux (via SSH)

plesk db "INSERT INTO cp_access (type, netaddr, netmask) VALUES ('deny', 'your.ip.address.here', '255.255.255.255')"

Explanation:

  • plesk db – This command allows running SQL queries directly on the Plesk internal database.
  • INSERT INTO cp_access – Adds a new rule to the IP restriction table.
  • type = 'deny' – In Plesk logic, 'deny' means allowed if policy is “deny unlisted”.
  • netaddr – Replace 'your.ip.address.here' with your real IP (e.g., 192.168.1.100).
  • netmask = '255.255.255.255' – Applies this rule to exactly one IP address (a single host).

πŸͺŸ On Windows (via RDP + Command Prompt)

plesk db "INSERT INTO cp_access (type, netaddr, netmask) VALUES ('deny', 'your.ip.address.here', '255.255.255.255')"

This is the same command, just run in the Command Prompt (as Administrator) on a Windows-based Plesk server.


🧹 Option 2: Disable the IP Restriction Policy (Emergency Only)

πŸ‘¨β€πŸ”§ Purpose:

Fully remove the access policy to allow all IPs. Use only if Option 1 is not feasible.


🐧 On Linux

plesk db dump > plesk-backup.sql

Explanation:
Creates a backup of the Plesk database in case you need to restore the configuration.


plesk db "DELETE FROM cp_access"

Explanation:
Deletes all records from the IP restriction table (removing all IP rules).


plesk db "UPDATE misc SET val='allow' WHERE param='access_policy'"

Explanation:
Changes the policy setting from deny to allow, so Plesk will permit access from any IP.


systemctl restart psa sw-cp-server

Explanation:
Restarts the Plesk control panel web server to apply changes.


πŸͺŸ On Windows

plesk db dump > plesk-backup.sql

Creates a database backup


plesk db "DELETE FROM cp_access"

Removes all IP restriction entries


plesk db "UPDATE misc SET val='allow' WHERE param='access_policy'"

Changes policy to allow unrestricted access


net stop PleskService && net start PleskService

Restarts the Plesk service to apply the new settings


πŸ”’ After Regaining Access – Secure the Panel

Once you can log back into Plesk, it’s critical to reconfigure access restrictions properly.


πŸ”§ GUI Steps:

graph TD
  A[Tools & Settings] --> B[Restrict Administrative Access]
  B --> C[Set Policy: Deny Unlisted IPs]
  B --> D[Add Your IP + Office IP + VPN IP]

Explanation:

  • Go to Tools & Settings β†’ Restrict Administrative Access
  • Set the policy to “Deny access to the server from all IP addresses except those listed”
  • Add multiple IPs: your home, office, VPN, etc. to avoid future lockouts

πŸ” Enable Two-Factor Authentication

  1. Go to Security β†’ Two-Factor Authentication
  2. Scan the QR code with an app like Google Authenticator or Authy
  3. Test login from multiple devices

βœ… Recovery Checklist

βœ… Task
⬜ Logged in successfully
⬜ Added your current and backup IPs
⬜ Access policy set to Deny Unlisted
⬜ 2FA enabled for all admin users
⬜ Database backup (plesk-backup.sql) stored safely
⬜ Logged incident in IT change history

πŸ’‘ Best Practices

  • Always whitelist at least 2 IPs (e.g. home + VPN)
  • Keep regular backups of the Plesk DB
  • Test fallback IPs every quarter
  • Document changes in an IT admin logbook
Table of Contents
  • πŸ› οΈ Plesk Admin Login Blocked – IP Restriction Recovery Guide
    • ❗ Problem
    • 🧠 Background
    • βœ… Solution Options
      • πŸ” Option 1: Add Your IP Address to the Allowlist (Recommended)
        • πŸ‘¨β€πŸ’» Purpose:
      • 🐧 On Linux (via SSH)
      • πŸͺŸ On Windows (via RDP + Command Prompt)
      • 🧹 Option 2: Disable the IP Restriction Policy (Emergency Only)
        • πŸ‘¨β€πŸ”§ Purpose:
      • 🐧 On Linux
      • πŸͺŸ On Windows
    • πŸ”’ After Regaining Access – Secure the Panel
      • πŸ”§ GUI Steps:
      • πŸ” Enable Two-Factor Authentication
    • βœ… Recovery Checklist
    • πŸ’‘ Best Practices

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest

Was it helpful ?

  • Happy
  • Normal
  • Sad
  • About
  • Contact
  • Docs
  • Features
  • Home

© 2026 Panel Web Hosting

  • About
  • Contact
  • Docs
  • Features
  • Home