# Webtaru Site Options and Login Security

**Webtaru Site Options and Login Security** is a powerful WordPress plugin designed to help you manage your site's essential information, admin workflows, visual enhancements, and security from a single, centralized dashboard.

## Key Features

### 🛡️ Security & Privacy
* **File & Malware Scanner:** Scan your active plugins, themes, and database options for known malware signatures, injected scripts, and hidden backdoors. Includes a 1-Click Auto-Clean feature.
* **Geo-Blocking:** Restrict access to your login page or entire site based on the visitor's country using lightweight IP lookups.
* **Secure Login Customization:** Change your WordPress login URL to a custom slug to block brute-force attacks. Includes a secret key cache-bypass query string for cached environments.
* **CAPTCHA Integration:** Support for Google reCAPTCHA v3 and Cloudflare Turnstile directly on your login forms.
* **Login Attempt Limiter:** Limit failed login attempts and unlock locked-out IPs directly from the dashboard.
* **Email-Based 2FA:** Intercept logins and require verification codes sent via email for administrators or selected roles.
* **Inactivity Auto-Logout:** Automatically log out inactive users with an elegant countdown warning overlay.
* **Login Email Alerts:** Receive instant email notifications with user, IP, User Agent, Time, and Site URL upon successful logins.
* **Advanced XSS Protection:** Add basic or advanced security headers to protect your site from script injections.
* **Basic Security Firewall:** Automatically block common malicious query strings, SQL injections, and malware patterns.
* **REST API Restriction:** Restrict WP REST API access for unauthorized users to prevent data enumeration.
* **Disable Common Usernames:** Prevent registration and logins for weak usernames like "admin" to harden security.
* **Site Hardening & XML-RPC:** Restrict author archives to prevent username enumeration and disable XML-RPC requests to prevent external exploits.
* **Content Protection:** Protect your content by disabling Right-Click, Text Selection, and Copy-Paste globally.

### ⚙️ Identity, Branding & Contact Info
* **Advanced Custom Login Page Designer:** Elevate your login experience with premium templates like Split-Screen Layouts and modern Glassmorphism aesthetics.
* **Logo Management:** Manage separate Light and Dark versions of your website logo, and support custom SVG uploads.
* **Login Page Aesthetics:** Customize the login page with a custom logo, background image, styling overrides, and a custom error message.
* **Contact & Social Info:** Centralized control of phone numbers, email addresses, fax, maps, and social profiles.
* **Agency Mode / White-Labeling:** White-label the plugin for your clients by renaming the menu page and hiding the default brand icon.
* **Business Hours Scheduler:** Manage daily business hours and display them dynamically with "Open/Closed" indicator shortcodes.

### 🚀 UI & UX Enhancements
* **Admin Bar Zen Mode:** Instantly declutter the admin bar by removing distracting logos, comments, updates, and notices.
* **Admin Bar Cleanup:** Declutter your dashboard by selectively hiding top-level and third-party admin bar nodes.
* **Sticky WhatsApp Button:** Add a floating WhatsApp contact bubble with customizable placement, numbers, and greeting messages.
* **Sticky Vertical Button:** Add a customizable floating side button (e.g. for Feedback or Contact) with custom colors and positions.
* **Mobile Navigation Bar:** Add fixed bottom action navigation buttons specifically optimized for mobile visitors.
* **Back to Top Button:** Smooth scrolling back-to-top button with customizable colors, shapes, and sizes.
* **Smooth Inertia Scrolling:** Enable customizable fluid mousewheel scrolling speeds and smoothness globally.

### 📈 SEO, Communication & SMTP
* **Schema.org JSON-LD:** Automatically generate local SEO-optimized LocalBusiness Schema JSON-LD markup based on your options.
* **SMTP Integration:** Route all outgoing WordPress emails through a secure SMTP configuration (host, port, security, authorization) and test it with a built-in email tool.
* **Maintenance Mode:** Toggle a professional maintenance page with custom headings, messages, SVG status cogs, contact details, and bypass cookies.
* **Auto-Alt Text:** Automatically fill missing image Alt tags with image titles for improved image search SEO.

### 📝 Content & Media Management
* **AJAX Media Replacement:** Overwrite and replace media files directly from the attachment details panel or list view while preserving the original URLs and file names.
* **Post & Page Duplicator:** Clone or duplicate posts, pages, or custom post types in one click from dashboard list tables.
* **Duplicate Menu:** Duplicate navigation menus with a single click in the WordPress Menu Editor screen.
* **External Links Control:** Force all external links in post content to open in a new tab (`target="_blank"`).
* **Shortcodes & Page Builder Widgets:** Built-in Elementor Widget and WPBakery Page Builder element for drag-and-drop dynamic contact info placement.

### 🛠️ Admin Workflow & Optimizations
* **Gutenberg Editor Control:** Disable the Gutenberg Block Editor and easily restore the classic visual/text editor interface.
* **Disable Comments Sitewide:** Disable commenting features and references sitewide for posts, pages, and media.
* **Disable Theme/Plugin File Editor:** Turn off the default file editor to protect source code from unauthorized modifications.
* **Hide Updates & Disable Auto-Updates:** Selectively hide update notifications and disable auto-updates for chosen plugins.
* **Hide Admin Sidebar Menus:** Hide specific sidebar menus for non-administrators or standard users.
* **One-Click Cache Flushing:** Flush cache across WP Rocket, LiteSpeed Cache, SG Optimizer, and WP Engine on settings save.
* **Remove Query Strings:** Remove version query strings (`?ver=`) from CSS and JS files for improved caching.
* **Copyright Year Shortcode:** `[wtols_copyright]` shortcode that automatically displays the current calendar year.
* **Custom CSS & JS Injector:** Inject custom scripts/styles in the header/footer of front-end pages.
* **404 Redirection:** Redirect all 404 Not Found errors to the home page with temporary 302 redirects.

### 💾 Database & Redirection Manager
* **301/302 Redirect Manager:** Create, update, and bulk-delete custom source-to-target URL redirects. Supports importing and exporting redirects via JSON.
* **Database Optimization:** Run database cleanup tasks to purge revisions, drafts, transients, and orphan metadata.
* **Backup & Restore settings:** Export your site options configuration as a JSON file and restore it on any site.

## Installation

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin via the 'Plugins' menu.
3. Configure your settings under the **Webtaru Site Options** menu.

## Compliance Note

This plugin is fully compliant with the WordPress.org Plugin Directory Guidelines. It does not contain any arbitrary code execution features and follows strict security practices for data handling and output.


