Block Administrator

A security enhancement app for Frappe Framework that blocks login attempts to the administrator account when email-password login method is enabled.

Install Block Administrator

bench get-app https://github.com/iamimmanuelraj/block_administrator

Add the Frappe Gems badge to your README

Maintain Block Administrator? Paste this into your README:

[![Listed on Frappe Gems](https://frappegems.com/api/method/frappe_gems.seo.badge?app=iamimmanuelraj%2Fblock_administrator)](https://frappegems.com/gems/apps/iamimmanuelraj/block_administrator)

About Block Administrator

# Block Administrator 🛡️ A security enhancement app for Frappe Framework that blocks login attempts to the administrator account when email-password login method is enabled. ## 📋 Table of Contents - [Features](#features) - [Installation](#installation) - [Usage](#usage) - [How It Works](#how-it-works) - [Credits](#credits) - [Contributors](#contributors) - [License](#license) ## Features - ✅ Prevents unauthorized access to administrator account - ✅ Compatible with Frappe Framework - ✅ Simple setup with zero configuration - ✅ Enhanced security for email-password authentication ## Installation ```bash bench get-app https://github.com/username/block_administrator bench --site your-site.com install-app block_administrator ``` ## Usage Once installed, the app automatically blocks login attempts to the administrator account when email-password login method is enabled. This adds an extra layer of security to your Frappe installation.
Why block the administrator account?
The administrator account has full system access. When email-password authentication is enabled, it becomes a high-value target for brute force attacks. This app helps mitigate that risk by preventing direct login to the administrator account.
## How It Works The app hooks into Frappe's authentication system and implements the following security logic: | Login Attempt | Result | Reason | |--------------|--------|--------| | Administrator account | 🚫 Blocked | Security risk | | Other accounts | ✅ Allowed | Normal operation | ```mermaid graph TD A[Login Request] --> B{Is administrator?} B -->|Yes| C[Block Access] B -->|No| D[Process Normally] ``` ## Credits This app is built on top of the [Frappe Framework](https://frappeframework.com), an open-source, metadata-driven framework created by Frappe Technologies. Special thanks to: - The [Frappe Team](https://frappe.io/team) for developing and maintaining the framework - The [Frappe Community](https://discuss.frappe.io) for their continued support

Related Other apps for Frappe & ERPNext

  • Erpnext — Free and Open Source Enterprise Resource Planning (ERP)
  • Helpdesk — Modern, Streamlined, Free and Open Source Customer Service Software
  • Print Designer — Visual print designer for Frappe / ERPNext
  • Ctr — CTR模型代码和学习笔记总结
  • Whitelabel — Whitelabel ERPNext
  • Fossunited — fossunited.org
  • Helm — Helm Chart Repository for Frappe/ERPNext
  • Frappe Attachments S3 — A frappe app to upload file attachments in doctypes to s3.