• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

danblee.com

Tutorials & Knowledge Base Articles for System Administrators who wear many, many hats.

  • Home
  • About
  • Ask Me
  • DBLHost.com

WordPress LiteSpeed 403 Forbidden at Login Prompt

May 27, 2014 by Dan B. Lee 1 Comment

For those of you who have run into this before, you know exactly what to do, but for those of you who have never seen a Forbidden when working with your WordPress installation, it may freak you out for a short second. Here’s what’s going on when you try to log into your http://site.com/wp-admin WordPress Login and get a dreaded 403 Forbidden Error.

More than likely, your .htaccess file has changed. If you didn’t do this manually, there’s a good chance your hosting provider did this to you. They did it on purpose, but for good reason. Providers have different ways of handling this, you’ll see different scripts, but here’s my provider’s response.

NOTE: You’ll find it when you open up the .htaccess file at your root or home\username, NOT at the www\ of your site.

# The following lines have been put in place by your hosting provider as your site was under a brute force dictionary attack.
# You can provide yourself access to the wp-admin by adding an “Allow from” line with your IP address before the “Deny from all” line.
# If you need to allow multiple users in you can remove the following lines entirely if you need or you can add multiple “Allow from” lines.
#
# If you have any questions about this at all, do please get with your hosting provider for support.
#
<Files “wp-login.php”>
Order Allow,Deny
# Uncomment the following line and change the number to your IP address. You can find your IP address at http://www.whatismyip.php/
#Allow from 123.456.789.012
Deny from all
</Files>
#
#
# End of brute-force block. If you do wish to remove the block entirely do not remove beyond this line.

To fix this, you can either delete this entirely and trust that you won’t be brute forced again, or you can be smart and add your IP Adress to the allowed list.

  1. Find the line that says #Allow from 123.456.789, etc and remove the #
  2. Head to www.whatismyipaddress.com and get your local IP Address
  3. Add your IP Address after “Allow from…”
  4. Done! Refresh and blam. You’re all set.

To add multiple addresses, you can just put a space after each one on the “Allow from…” line.

Good Luck. Cheers!

Filed Under: WordPress Tagged With: .htaccess, 403 Forbidden

Primary Sidebar

Categories

  • Active Directory
    • Group Policy
  • Adobe Photoshop
  • Browsers
    • Chrome
  • Cloud Based Technology
    • Citrix XenApp
  • ConnectWise
    • LabTech
  • Dell
  • Internet Service Providers (ISPs)
  • iPhone
  • Linux
    • CentOS
    • OpenVPN
    • SaltStack
    • Ubuntu
  • Microsoft Office
    • Lync
    • Microsoft Excel
    • Microsoft Outlook
    • Microsoft Word
  • Microsoft Windows
    • Active Directory
    • PowerShell
    • Windows 7
    • Windows 8 Preview & Release
  • Networks
  • News
  • Off Topic
  • Office 365
  • Peripherals
    • Monitors
  • Printers
    • Local Printers
    • Network Printers
  • Programming
    • Python
  • Riverbed
  • Security
  • Sharepoint
  • Social Media
  • Splunk
  • Storage
  • Switching & Routing
    • Cisco
    • Fortinet
  • Technology Culture
    • Opinion
  • Uncategorized
  • Virtualization
    • VEEAM
    • VMware
  • WAMP
  • Web Hosting
    • WHMCS
  • Website Design
  • Windows Server
    • Exchange 2003
    • Exchange 2010
    • Exchange 2013
    • Microsoft SQL
    • Windows Server 2003
    • Windows Server 2008 R2
    • Windows Server 2012
  • WordPress

Footer

Recent Activity

  • pings on Xerox Phaser 3635MFP Default Admin Username and Password
  • Xerox Phaser 3635MFP Default Admin Username and Password — danblee.com on About Dan B. Lee
  • Estudio Login | LOGINEGG on Toshiba E-Studio Default Administrator Username and Password
  • Estudio Login | LOGINSPENT on Toshiba E-Studio Default Administrator Username and Password
  • Estudio Login | CHARTLOGIN on Toshiba E-Studio Default Administrator Username and Password

Dan Lee

Dan B. Lee works at SyApps, LLC., a Managed Hosting Solutions Firm, as a Senior Network Engineer. Dan has a decade of IT experience and specializes in a number of different disciplines including Virtualization, Web Site Hosting and Design, Network Security, Data Center Architecture, Local and Remote Server Hosting, and Backup & DRS Solutions. Read More…

Links

  • Home
  • About Dan B. Lee
  • Ask Me
  • Privacy Policy

Copyright © 2021 · Genesis Child Theme on Genesis Framework · WordPress · Log in