Cloud Build

Microsoft Azure, 365 and all things Tech

Skip to content
  • About Me
  • Terms
  • Privacy

Hide Wordpress 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

  • Microsoft 365 Copilot tasks you can try in Outlook
  • Practical Microsoft 365 Copilot Tasks You Can Try in Excel
  • Extending Microsoft 365 Copilot with Microsoft Copilot Studio
  • Copilot Agents: Agent Builder, Copilot Studio, or Foundry?
  • Backups vs Replication vs High Availability vs Fault Tolerance vs Disaster Recovery
  • Building an Autonomous AI Agent in Copilot Studio – Part 9: Testing the Autonomous Agent
  • Building an Autonomous AI Agent in Copilot Studio – Part 8: Amend Existing Agent Instructions to Use Tools
  • Building an Autonomous AI Agent in Copilot Studio – Part 7: Add Tools to a Copilot Studio Agent
  • Building an Autonomous AI Agent in Copilot Studio – Part 6: Create a Trigger in Copilot Studio
  • Building an Autonomous AI Agent in Copilot Studio – Part 5: Create an Excel Log File to Record Mentor Requests
  • Building an Autonomous AI Agent in Copilot Studio – Part 4: Create an Excel Spreadsheet Listing Trainers and Qualified Courses
  • Building an Autonomous AI Agent in Copilot Studio – Part 3: Create a Copilot Studio Agent (Name, Image, Description, and Instructions)
  • Building an Autonomous AI Agent in Copilot Studio – Part 2: Create a Power Platform Environment
  • Building an Autonomous AI Agent in Copilot Studio – Part 1: Create a Microsoft Form
  • What are topics in Copilot Studio
  • Why You Should Register for Microsoft Certification Exams Using Your Personal Email and Not Your Work or School Account
  • Create a fingerprint based Sensitive Information Type (SIT) in Microsoft Purview – Part 10
  • Create a Sensitive Information Type (SIT) from scratch in Microsoft Purview – Part 9
  • Exploring a built-in Sensitive Info Type in Microsoft Purview – Part 8
  • Microsoft Purview Information Protection – Part 7
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

  • Microsoft 365 Copilot tasks you can try in Outlook
  • Practical Microsoft 365 Copilot Tasks You Can Try in Excel
  • Extending Microsoft 365 Copilot with Microsoft Copilot Studio

Archives

  • About Me
  • Contact Me
  • Microsoft Updates
  • Privacy
  • Terms
error: Content is protected !!