{"id":26788719,"url":"https://github.com/luke22076/wp-secure","last_synced_at":"2026-04-12T16:09:19.255Z","repository":{"id":278418621,"uuid":"935559981","full_name":"Luke22076/wp-secure","owner":"Luke22076","description":"A security plugin that protects login attempts, adds 2FA, uses Captcha, and provides IP blocking.","archived":false,"fork":false,"pushed_at":"2025-02-19T16:53:08.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T13:19:07.251Z","etag":null,"topics":["php","wordpress","wordpress-plugin","wp-security"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Luke22076.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-19T16:37:34.000Z","updated_at":"2025-02-25T08:09:31.000Z","dependencies_parsed_at":"2025-02-19T17:47:36.795Z","dependency_job_id":null,"html_url":"https://github.com/Luke22076/wp-secure","commit_stats":null,"previous_names":["luke22076/wp-secure"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Luke22076/wp-secure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke22076%2Fwp-secure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke22076%2Fwp-secure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke22076%2Fwp-secure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke22076%2Fwp-secure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luke22076","download_url":"https://codeload.github.com/Luke22076/wp-secure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luke22076%2Fwp-secure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448175,"owners_count":24251994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","wordpress","wordpress-plugin","wp-security"],"created_at":"2025-03-29T13:19:09.702Z","updated_at":"2026-04-12T16:09:19.226Z","avatar_url":"https://github.com/Luke22076.png","language":"PHP","readme":"# Secure Login Plugin for WordPress\n\n**Plugin Name:** Secure Login  \n**Version:** 1.1  \n**License:** MIT  \n**Author:** Luvus  \n**Author URI:** [https://github.com/Luke22076/](https://github.com/Luke22076/)  \n**Plugin URI:** [https://github.com/Luke22076/wp-secure/](https://github.com/Luke22076/wp-secure/)\n\n## Description\n\nThe **Secure Login** plugin enhances the security of your WordPress site by adding several protective features to your login process:\n\n- **Brute-Force Protection** with limits on failed login attempts\n- **Two-Factor Authentication (2FA)** for additional security\n- **Captcha** after a specific number of failed login attempts\n- **IP Blocking** after repeated failed login attempts\n- **Custom Login URL** to hide the default login page (`wp-login.php`)\n- **Email Notifications** on suspicious login attempts\n\nThis plugin helps protect against brute-force attacks, spam bots, and unauthorized access to your site by significantly improving login security.\n\n## Features\n\n- **Brute-Force Protection:** Blocks users after a certain number of failed login attempts (configurable).\n- **Two-Factor Authentication (2FA):** Option to enable 2FA for additional login security.\n- **Captcha at Login:** Displays a CAPTCHA after several failed login attempts to stop automated login attempts.\n- **IP Blocking:** Blocks IP addresses that have made repeated failed login attempts.\n- **Custom Login URL:** Hides the default WordPress login page and redirects it to a custom URL.\n- **Email Notifications:** Sends notifications to the admin after suspicious login attempts.\n\n## Installation\n\n1. Upload the entire plugin folder `secure-login` to the `/wp-content/plugins/` directory of your WordPress site.\n2. Go to your WordPress Dashboard and navigate to **Plugins \u003e Installed Plugins**.\n3. Find **Secure Login** and click **Activate**.\n\n## Configuration\n\nThe plugin uses a **config.php** file for easy configuration. After installation, you can edit the `config.php` file to adjust the settings without modifying the main plugin code.\n\nThe available settings in `config.php` are:\n\n- **max_failed_logins**: Maximum number of failed login attempts before blocking the user (default is `5`).\n- **captcha_failed_attempts**: Number of failed attempts before enabling CAPTCHA (default is `3`).\n- **custom_login_url**: Custom login URL to replace the default `wp-login.php` (default is `'your-website.com/login'`).\n- **enable_2fa**: Set to `true` to enable two-factor authentication (default is `true`).\n- **block_ips**: Set to `true` to enable IP blocking after failed login attempts (default is `true`).\n- **notify_on_suspicious_activity**: Set to `true` to receive email notifications on suspicious login attempts (default is `true`).\n\nHere’s an example of the `config.php` file:\n\n```php\n\u003c?php\n// Configuration options for the Secure Login Plugin\n\nreturn array(\n    'max_failed_logins' =\u003e 5,  // Set the max failed login attempts before blocking the user\n    'captcha_failed_attempts' =\u003e 3,  // Set the number of failed attempts before enabling CAPTCHA\n    'custom_login_url' =\u003e 'your-website.com/login',  // Define your custom login URL\n    'enable_2fa' =\u003e true,  // Set to true to enable two-factor authentication\n    'block_ips' =\u003e true,  // Enable IP blocking after multiple failed login attempts\n    'notify_on_suspicious_activity' =\u003e true,  // Enable email notifications for suspicious login attempts\n);\n```\n\nModify this configuration file to your needs.\n\n## Example: Custom Login URL\n\nTo change the default WordPress login URL, simply modify the `custom_login_url` value in the `config.php` file:\n\n```php\n'custom_login_url' =\u003e 'your-website.com/login'  // Change this to your custom login URL\n```\n\nThe plugin will automatically redirect requests to the default `wp-login.php` page to your custom login URL.\n\n## Features in Detail\n\n### Brute-Force Protection\nThe plugin tracks the number of failed login attempts and blocks the user after a certain threshold, which you can configure in the `config.php` file. If the maximum number of failed attempts is reached, users will be blocked.\n\n### CAPTCHA\nA CAPTCHA form will appear after a specific number of failed login attempts to prevent automated login attempts. This is configurable through the `config.php` file.\n\n### Two-Factor Authentication (2FA)\nThe plugin integrates two-factor authentication (2FA) for enhanced security. If enabled, a CAPTCHA check is added to the login process. You can adjust 2FA settings in the `config.php` file.\n\n### IP Blocking\nThe plugin can block IP addresses that attempt to log in unsuccessfully multiple times. Once the failed login attempts exceed the configured limit, the IP will be blocked.\n\n### Custom Login URL\nInstead of using the default WordPress login page (`wp-login.php`), the plugin allows you to set a custom login URL. This helps hide the login page from potential attackers.\n\n### Email Notifications\nThe plugin will send an email notification to the site administrator if suspicious login activity (too many failed login attempts) occurs.\n\n## Contributing\n\nIf you wish to contribute to the plugin by adding new features or improving existing ones, please fork the repository and create a pull request. Be sure to add tests for any new functionality.\n\n## License\n\nThis plugin is licensed under the **MIT License**. See the `LICENSE` file for details.\n\n## Support\n\nIf you encounter any issues or need help with the plugin, please create an issue on the [GitHub repository](https://github.com/Luke22076/wp-secure/issues).\n\n## Acknowledgements\n\nThis plugin is built using WordPress best practices for security and login protection. Special thanks to the WordPress community for their ongoing contributions to web security.\n\n---\n\n### **How to Customize the Plugin**\n\n1. Edit `config.php` to adjust settings such as the maximum number of failed login attempts, custom login URL, CAPTCHA settings, and more.\n2. Upload both the `secure-login.php` and `config.php` to your plugin directory (`/wp-content/plugins/secure-login/`).\n3. Activate the plugin and configure it via the `config.php` file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluke22076%2Fwp-secure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluke22076%2Fwp-secure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluke22076%2Fwp-secure/lists"}