# Custom Login URL for WordPress

> Move the login page to a secret address and hide wp-login.php and /wp-admin from visitors who are not logged in. Forgot the address? Add…

TW-SEC-11 Security


Move the login page to a secret address and hide wp-login.php and /wp-admin from visitors who are not logged in. Forgot the address? Add TOGGLEWORKS\_SAFE\_MODE to wp-config.php.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Custom Login URL

**Part number**
: TW-SEC-11
**Section**
: [Security](https://togglework.app/features/security/)
**Settings**
: 3
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

Every bot on the internet knows where the WordPress login page is. Moving it to an address only you know won’t stop a determined attacker, but it removes almost all of the automated login attempts, which keeps your logs readable and saves server resources.

### What it does

- Moves the login page to a secret address you choose.
- Hides wp-login.php and /wp-admin from visitors who aren’t logged in.
- Shows them a “not found” page, or redirects them to the home page or a URL you choose.

![Custom Login URL settings screen in the Toggleworks WordPress plugin, showing Login address, When someone opens wp-login.php or /wp-admin, Custom redirect URL](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/security-login-url.webp?v=1795524235)

The Custom Login URL screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Choose an address that isn’t obvious (not “login” or “admin”).
2. Bookmark the new login address **before** saving.
3. Save, log out and log back in through the new address.

## What you can set

Switch Custom Login URL on in Toggleworks → Security, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Login address
- When someone opens wp-login.php or /wp-admin
- Custom redirect URL

## Good to know

- This is a tidy extra, not protection on its own. Use it with [Login Lockdown](https://togglework.app/features/security/login-lockdown/) and [Two-Factor Authentication](https://togglework.app/features/security/two-factor/).
- Forgot the address? Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php, log in normally, and remove the line.
- Tell everyone else who logs in, and update any bookmarks or apps that point at wp-login.php.

## One less plugin to install

Custom Login URL does a job people often install a separate plugin for:

- Hiding the login pageOften done with Solid Security
- Changing the login addressOften done with Perfmatters
- Custom login address and login redirectsOften done with ASE

## Comes with 187 more parts

Custom Login URL is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 18 Security parts](https://togglework.app/features/security/)

### People also look for it as

- hide login
- wp-login
- wp-admin
- slug
- rename login
- brute force

## Often switched on with it

- [Login Lockdown](https://togglework.app/features/security/login-lockdown/) — TW-SEC-09 · Block an IP address (and optionally a username) for a while after too many failed logins, including XML-RPC. Locked out yourself?… · 8 settings
- [Login Branding](https://togglework.app/features/white-label/login-branding/) — TW-WHL-02 · Put your own logo, colors and background on the WordPress login page. · 16 settings
- [Email & SMS Login Codes](https://togglework.app/features/security/login-codes/) — TW-SEC-08 · Let people log in with a one-time code sent to their email (or phone by SMS) instead of a password, and sign up by confirming… · 7 settings
- [Login & Logout Redirects](https://togglework.app/features/security/login-redirects/) — TW-SEC-10 · Choose where each role lands after logging in or out, and optionally keep non-admins out of the dashboard. · 10 settings
- [Custom Fields](https://togglework.app/features/content/custom-fields/) — TW-CNT-06 · Add your own fields — text, numbers, dates, images, dropdowns, rich text — to posts, pages, products or custom post types, and… · Own screen in wp-admin
- [Custom Post Types](https://togglework.app/features/core/custom-post-types/) — TW-COR-08 · Create custom post types and taxonomies from the admin, without code. · Own screen in wp-admin

## Questions

**Is Custom Login URL included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Custom Login URL among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Custom Login URL slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Custom Login URL only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Custom Login URL before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/security/login-url/
