Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Secure the WP Admin Folder in WordPress Using htaccess

September 28, 2013 Leave a Comment

To protect your WordPress wp-admin folder from everyone else apart from you, you can add a htaccess file in the /wp-admin folder to allow only access from your IP address and everyone else will be denied and receive a ‘Page Not Found‘ 404 error.

This ensures no-one can even get to the login screen which is a great way to better protect your site.

The file must be named:

.htaccess

File it in:

/public_html/wp-admin/.htaccess

And its content should be as below – but swapping in your IP address:

<FilesMatch ".*">
 Order Deny,Allow
 Deny from all
 Allow from 12.34.567.890
</FilesMatch>

This will deny access to anyone that does not have the specific IP address to that directory.

Cats: WebRoot, WordPress

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS feed: ars technica ars technica

  • OpenAI stuck fighting Musk antitrust suit after Apple finds a way out
  • Apple releases iOS 27, macOS Golden Gate 27 with Siri AI and Liquid Glass refinements
  • Apple's long-rumored foldable becomes reality with the $2,000 iPhone Duo
  • Apple debuts $129 AirPods 5 with better noise cancellation and transparency mode
  • Apple's iPhone 18 Pro adds variable camera aperture and a more powerful chip

RSS feed: mac surfer mac surfer

  • 'Slow Horses' Renewed for Season 8 at Apple TV+
  • GM Reverses CarPlay Ban for Gas-Powered Vehicles
  • Apple Asks Supreme Court to Vacate Epic Contempt Ruling
  • Siri AI Requires Waitlist to Access in iOS 27
  • iOS 27 Lets Users Opt Into Siri AI Data Training

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in