Cloud Build

Microsoft Azure, 365 and all things Tech

Skip to content
  • About Me
  • Terms
  • 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

Top 50 Azure Blog

Subscribe to new posts

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

Recent Posts

  • Configure user and sign-in risk policies in Azure AD Identity Protection March 1, 2021
  • Do not allow users to grant consent to unmanaged applications February 27, 2021
  • How to configure Azure AD roles in Privileged Identity Management (PIM) February 20, 2021
  • Configure mailbox permission alert Microsoft 365 February 13, 2021
  • How to create a dynamic group in Azure AD February 4, 2021
  • Configure Intune device limit restrictions January 31, 2021
  • New Microsoft Exchange Admin Center January 23, 2021
  • Prevent users from downloading files from Microsoft Teams Channel January 16, 2021
  • Increase One Drive For Business default 30 day retention Limit January 9, 2021
  • Revoke Office Apps activation from user device January 7, 2021
  • Prevent users from uploading videos to Microsoft Stream January 3, 2021
  • Top 50 Azure Blogs December 31, 2020
  • Enable Self Service Password Reset in Azure December 29, 2020
  • Configure Conditional Access Policy in Azure December 26, 2020
  • How to assign licenses for Microsoft 365 using a security group December 22, 2020
  • Create a Modern SharePoint Site Microsoft 365 Part 1 December 20, 2020
  • Monitor Windows Virtual Desktop with Azure Monitor December 16, 2020
  • How to set passwords to never expire in Azure December 13, 2020
  • Change Azure Subscription Name December 12, 2020
  • Create and Optimise a Windows Virtual Desktop image December 10, 2020
  • Twitter

Cloud Build

© All rights reserved.

Powered by WordPress

Subscribe to new posts

Name

Email


Recent Posts

  • Configure user and sign-in risk policies in Azure AD Identity Protection
  • Do not allow users to grant consent to unmanaged applications
  • How to configure Azure AD roles in Privileged Identity Management (PIM)

Cloud Build

  • About Me
  • Contact Us
  • 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

error: Content is protected !!