Cloud Build

Microsoft Azure, 365 and all things Tech

Skip to content
  • About Me
  • Terms
  • Privacy

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

Follow Me

  • LinkedIn
  • Bluesky
  • X
  • Meetup
  • GitHub
  • RSS Feed

Search

Subscribe

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

Name

Email


Recent Posts

  • Free Microsoft Courses on YouTube
  • The Benefits of FREE Microsoft Applied Skills Credentials
  • Microsoft 365 Copilot Pages – Step by Step Demo
  • Microsoft 365 Copilot Chat and Microsoft 365 Copilot Explained
  • Obtain Free Let’s Encrypt Certificates and Store Them in Azure Key Vault: A Step by Step Guide
  • Azure Traffic Manager 404 Web Site not found
  • Be Part of HISTORY – Earn Your Free AI Skills Badge Today!
  • Part 3 – Microsoft Purview Roles and Scopes
  • How to access Azure Cloud Shell locally
  • Microsoft Purview Portal – Part 2
  • Introduction to Microsoft Purview – Part 1
  • Microsoft announces FREE GitHub Copilot for VS Code
  • User Guide: How to register passkeys in Microsoft Authenticator and physical passkeys
  • The Evilginx Threat: Protecting Your Credentials with Phishing Resistant MFA
  • Part 1 – What is a FIDO2 key and How to Set One Up for Emergency Access in Entra ID
  • Part 2 – Configure a YubiKey For An Emergency Access Account In Entra ID
  • From Nerves to Confidence: My Transformation Journey
  • Part 4 – Free Version of Microsoft Copilot
  • Part 3 – How to write Microsoft Copilot Prompts
  • Part 2 – Microsoft 365 Copilot under the hood
Azure community hero
Azure learner
Cloud champion
Top azure blogs

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
  • MCT-2023-2024
  • azure-network-engineer-associate-600×600
  • sc-300
  • az-900
  • SC-900
  • AI-900
  • Microsoftaiskillsfestgwrattemptbadge[full]
Azure crazy logo
Bradcuglogo

RSS Feed

  • Twitter
  • linkedin

Cloud Build

© All rights reserved.

Powered by WordPress

Subscribe to new posts

Name

Email


Recent Posts

  • Free Microsoft Courses on YouTube
  • The Benefits of FREE Microsoft Applied Skills Credentials
  • Microsoft 365 Copilot Pages – Step by Step Demo

Archives

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

error: Content is protected !!