Skip to content

BLOGTIMENOW

  • Home
  • About Us
  • Services
    • Web Design
  • SEO Tools
  • BLOG
    • WordPress
    • SEO
    • How to
    • Blogging
    • Social Media
    • Tips & Tricks
    • Free Lists
  • Contact
Wordpress

How to limit access to wordpress login page by IP address

limit access to wordpress login page by IP address

limit access to wordpress login page by IP addressBy default your wordpress login page is open for everybody, anyone can just type /wp-admin or /wp-login.php next to your domain name and reach your site entry point. So what do they do after reaching the entrance, they simply try to get in to your dashboard by attempting several logins. You should always be aware of malicious visitors who try to break your site login. Most of the times they automate brute force attacks (some hacking programs) to guess your wordpress user-name and password. In order to protect your site from brute force attacks and hackers you must take several security measures. Here we will see how to limit access to wordpress login page (wp-login.php) by IP address which is used as a strongest security act for private blogs.

In the initial period of this blog we have published a detailed article about preventing wordpress site from being hacked. If you go through that article then you will come to know some basic level security tips. To reduce the risk you have to consider these steps that is you have to maintain strong passwords, you should not use the default username admin etc. Also we have posted about limiting the number of login attempts which will be useful in blocking a user if he tries more than a number of specified logins. Anyhow the best part in protection would be double locking your wordpress admin directory which adds an additional authentication.

How to limit access to wordpress login page by IP address

Brute force attacks are executed by software’s which are aimed to gain entry to your site. The point is it tries multiple combinations of usernames and passwords again and again until it gets success. So due to such strong attacks your server runs out of memory and suddenly stops responding. If you are the only one running your blog (private blog/website) then you can deny your site login to everybody else except yourself.

<Files wp-login.php>
        order deny,allow
        Deny from all
 
        # Only allow this IP
        allow from xx.x.xxx.xx
        # Allow another IP
        allow from xx.x.xxx.xx
</Files>

To limit access to wordpress login page by IP address copy the code and paste it in your site’s .htaccess file just above everything. Next replace xx.x.xxx.xx with your IP address and make sure that your IP address stays static or else you have to change it every time. The second IP address is optional which you can remove if you want. Hope your single authored wordpress blog is much safer than before.

Related Posts

  1. How to change wordpress login logo – Customizing wordpress login page Are you creating an elegant wordpress site for your client and willing to change the wordpress login logo? Changing the…...
  2. Limit login attempts in wordpress site – WordPress security Recently our hosting blocked one of our wordpress site and we couldn’t find the exact reason and when we requested…...
  3. How to change wordpress username – Change username admin for security Do you need to change you wordpress username that is the default username admin, then take a look at this…...
  4. Prevent image hotlinking with .htaccess in wordpress – Hotlink protection Are you concerned about people stealing images from your website? We are not asking about people who copy images, we…...
  5. How to deactivate wordpress plugins manually using FTP and phpMyAdmin You can customize and add extra features to your wordpress site by using plugins. Each and every wordpress plugins are…...
Tags: .htaccess · How to · IP address · Security · Wordpress · wordpress login page · Wordpress security · wp-admin · wp-login

Post navigation

← Adding Feedburner email subscription form in wordpress and Blogger
Make money with Disqus comments – Disqus promoted discovery →

Ignore me if you can

Attract, impress and win more customers with professionally designed websites by BlogTimeNow.

💻
Try for free it's easy!

Join over 27.4k Subscribers

Subscribe to our blog feeds and receive high quality resources daily. No spam!

About Us

Hi, Welcome to blogtimenow.com, a blog and a community based website that mainly focuses on providing quality articles and inspirational stuff constantly to users which is founded on July 2013 by Sureyea. This weblog is dedicated for designers, developers, bloggers, internet marketers, web and computer enthusiasts.

Recent Articles

  • How to receive emails in Gmail primary inbox – Handling Gmail tabs
  • How to fix Feedburner feed double titles issue – Quick tip
  • Understaning CSS selectors for beginners – ‘>’, ‘+’ and ‘~’ symbols
  • How to recover deleted blog post on Blogger – draft, published post
  • How to customize scrollbar style in wordpress using CSS

Site Links

  • About Us
  • Comment Policy
  • Contact
  • Contact Our Team
  • Privacy Policy
  • SEO Tools
  • Services
  • Suggest Us (or) Submit Tips
  • Terms and conditions
  • Web Design

Services

  • Web Design
  • Web Development
  • WordPress Services
  • SEO
  • E-Commerce
  • Social Media Marketing

Copyright © 2026 Blog Time Now | Powered by BlogTimeNow