Cloud Build

Microsoft Azure, 365 and all things Tech

Skip to content
  • About Me
  • Terms
  • Privacy
  • Contact Us

Hide Dashboard Login Errors

Hide WordPress Dashboard Login Errors To Prevent Hacking

Posted on July 12, 2011 by Imran Rashid
Reading Time: < 1 minute

In this simple tutorial we’ll show you how to hide login errors on the wp-login.php section of your site. The reason for doing this if you try and login using the correct username, but with a wrong password, a message is displayed showing: “Error:Incorrect Password.” This gives a hacker the information that the username is part of the wordpress system – so they only have to crack its password.

The same applies vice versa – if the username is incorrect it displays “Error:Invalid Username”. This reveals that the username is non-existent and lets a hacker know he needs to find the right username.  

In order to keep this from happening, you need to add this code to your functions.php file:

add_filter(‘login_errors’, create_function(‘$a’, “return null;”));

This filter will remove the standard WordPress error by displaying nothing when a login is incorrect. Which if you’re running a personal blog – works perfectly as its unlikely you’ll ever forget the login. However if you’re running a magazine style site with many contributors/editors/admins then you may want to think twice before implementing this solution.

Written by Helen Clough – WordPress fan and IT guru at Integral IT, a company who assist businesses with IT Support in Yorkshire and the UK.

Posted in wordpress
Tagged Hide Dashboard Login Errors Hide Wordpress Dashboard Login Errors wordpress
Leave a comment

Search

Subscribe

Keep up to date on the latest articles. We will never spam you or forward your details to third parties.

Name

Email


Certifications

  • azure-solutions-architect-expert-600×600
  • azure-security-engineer-associate600x600
  • azure-administrator-associate
  • NCDA-7-Mode_352x352
  • Designing+and+Deploying+Microsoft+Exchange+Server+2016-01
  • Microsoft_Exam533
  • Microsoft_Exam534
  • MCSA-Cloud-Platform-2018
  • azure-solutions-architect-expert-600×600
  • CERT-Associate-Microsoft365-Teams-Administrator
  • MS-100-exam
  • exam-ms100_1-600×600
  • microsoft365-enterprise-adminstrator-expert-600×600
  • microsoft365-messaging-administrator-associate-600×600
  • SCI_Challange_Complete_OpenHack_600X600
  • Microsoft Certified Trainer

Recent Posts

  • Useful Azure Resources June 24, 2022
  • Azure Storage Replication options explained in a diagram June 11, 2022
  • A new chapter, I’m joining Microsoft! February 17, 2022
  • Part 9: Terraform with Azure – Deploy a VNET and Subnet February 16, 2022
  • Part 8: Terraform with Azure – Deploy terraform.tfvars file February 13, 2022
  • Part 7: Terraform with Azure – Deploy a variables file in Terraform February 9, 2022
  • Part 6: Terraform with Azure – Deploy resources in Azure February 6, 2022
  • Part 5: Terraform with Azure – Install Git and initialise repository January 30, 2022
  • Azure Availability Sets and Azure Availability Zones explained November 3, 2021
  • Configure Azure Portal Timeout Limit October 26, 2021
  • Configure Service Health Alerts in Azure September 26, 2021
  • How to Build an Azure Community August 31, 2021
  • Deploy a WordPress website using Azure App Services July 3, 2021
  • Cloud Family Champion and Azure Heroes Award! June 26, 2021
  • How to create a DNS Zone in Azure DNS May 23, 2021
  • Part 4: Terraform with Azure – How to install Azure Terraform Plugin in Visual Studio Code April 10, 2021
  • Part 3: Terraform with Azure – How to Install Visual Studio Code March 20, 2021
  • Part 2: Terraform with Azure – How to install Azure CLI March 14, 2021
  • Implementing Microsoft 365 Data Loss Prevention (DLP) March 13, 2021
  • HDD performance running at 100% March 7, 2021
  • Twitter

Cloud Build

© All rights reserved.

Powered by WordPress

Subscribe to new posts

Name

Email


Recent Posts

  • Useful Azure Resources
  • Azure Storage Replication options explained in a diagram
  • A new chapter, I’m joining Microsoft!

Cloud Build

  • About Me
  • Contact Us
  • Privacy
  • Terms

Subscribe

Subscribe to new tech posts.
We will never send you spam email or forward your details to third parties.


Name

Email


This will close in 0 seconds

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

CookieDurationDescription
cookielawinfo-checbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

SAVE & ACCEPT
error: Content is protected !!