# Tool settings

> Turn WordPress debugging, password protection, and Set-Cookie removal on or off, and find the other cards on the Tools tab.

Source: https://docs.wpwaterfall.com/tools-settings

The Tools tab holds the switches and actions for quick fixes: debugging, password protection, cache clearing, and a PHP restart. Open the site, pick the environment in the top bar, and choose **Tools**. Every change runs as a job, and the dashboard shows the progress.

## How are the tools grouped?

**Active** lists the tools that are on, including Force HTTPS in any mode but Disabled. **Available** lists the rest, including tools you only run, such as Restart PHP and Clear server cache. A card moves between groups when its change applies. An **Enable** button means the tool is off. **Disable** means it is on.

## How do I turn a setting on or off?

Click **Enable** or **Disable** on the card. These settings are switches:

- **WordPress debugging**: shows warnings and errors in `error.log` on the [Logs tab](https://docs.wpwaterfall.com/logs-viewer). Turn it off when you finish. Needs WordPress on the environment.
- **Password protection**: asks visitors for a username and password. It suits staging and preview environments you share with a client. WP Waterfall stores only a hash and shows the password once. It does not affect Git. See [Staging privacy](https://docs.wpwaterfall.com/staging-privacy#add-a-password).
- **Remove Set-Cookie headers**: strips the header from cached pages when a plugin sets a cookie on every page. Leave it off if the cookie matters to your visitors. See [Edge cache and CDN](https://docs.wpwaterfall.com/edge-cache).

Environments start with these tools off. The malware scan is not a tool: it has no switch and runs by itself in every environment (see [Protection](https://docs.wpwaterfall.com/protection)).

## How do I switch redirects, IP deny, and Monitor?

These cards switch a whole feature on or off and keep your data:

- **Redirects**: runs your redirect rules, or stops all of them and keeps them saved. See [Redirects](https://docs.wpwaterfall.com/redirects).
- **IP Deny**: blocks the addresses on your list, or stops blocking and keeps the list. It works on the live environment. See [IP deny](https://docs.wpwaterfall.com/ip-deny).
- **Monitor**: one card with two switches. **Performance**: **Enable** makes the Performance section of the **Monitor** tab available. You start and stop collecting inside the section. **Disable** empties the section and stops a running collection. Collected data stays for the retention period. **Uptime**: on for every live environment. **Disable** stops the one-minute checks of your site and the down and up notices. The Uptime switch shows on the live environment only. See [Monitor](https://docs.wpwaterfall.com/monitor).

While Redirects or IP deny is off, its sidebar item (or its tab at the top of Tools) is hidden for that environment. A bookmark to the page still opens it, with a button to turn the tool on. The **Monitor** tab always stays: a part that is off says so in its own section.

Members who may manage the edge (redirects and IP deny) or change the environment (Monitor) see Enable and Disable. Everyone else sees the state.

## What do Server cron, Block XML-RPC, and One click WordPress login do?

Each is a switch on its own card, and each needs WordPress on the environment. This page only says where they are. The explanation is in one article each:

- **Server cron** adds the **Cron** tab to Tools. See [Cron jobs](https://docs.wpwaterfall.com/cron-jobs).
- **Block XML-RPC** shows on live only, and is on for every site. See [Security defaults](https://docs.wpwaterfall.com/security-defaults).
- **One click WordPress login** controls the **Log in to WP Admin** button and starts off. Turning it on creates your WordPress administrator, and turning it off removes the users it created. See [WP Admin login](https://docs.wpwaterfall.com/wp-admin-login).

## How do I clear the server cache or restart PHP?

Click **Clear cache** on the **Clear server cache** card, or **Restart PHP** when the site hangs or a PHP setting needs a fresh start. The [Sites list](https://docs.wpwaterfall.com/sites-list) row menu has both, also on many sites at once. What each cache clear covers is in [Clear caches](https://docs.wpwaterfall.com/clear-caches).

## How does Force HTTPS work?

Click **Modify** on **Force HTTPS** and pick a mode: **All domains**, **Primary domain only**, or **Disabled**. What each mode does is in [Domains](https://docs.wpwaterfall.com/domains#what-does-force-https-do).

## How do plugins read the visitor's location?

**Geolocation** passes each visitor's location to PHP in `$_SERVER`:

- Country: `GEOIP_COUNTRY_CODE` and `HTTP_X_WPWATERFALL_COUNTRY`, a two letter code such as `US`.
- City: `GEOIP_CITY` and `HTTP_X_WPWATERFALL_CITY`.
- Region: `GEOIP_REGION` and `HTTP_X_WPWATERFALL_REGION_CODE`, a code such as `CA`. `HTTP_X_WPWATERFALL_REGION` holds the name.
- Postal code: `GEOIP_POSTAL_CODE` and `HTTP_X_WPWATERFALL_POSTAL_CODE`.
- Also `GEOIP_LATITUDE`, `GEOIP_LONGITUDE`, and `HTTP_X_WPWATERFALL_TIMEZONE`.

Cached pages vary by the visitor's country: each country gets its own copy, so a page can show prices or content by country. A country that is not known is `XX`. The city, region, postal code, coordinates, and time zone are available only on pages that are never cached: the cart, checkout, the account pages, pages you exclude on the Caching tab, and every page for signed in visitors. On other pages they are empty. They are estimates from the visitor's IP address, so use them as hints.

## How do I check a site before I change DNS?

Open its temporary domain, such as `live-elric.wpwaterfall.dev`. It always serves the site, so there is no tool to turn on. See [temporary domain](https://docs.wpwaterfall.com/temporary-domain).

## Where is Early Hints?

Early Hints is the **Preload hints and Early Hints** part of [Speed optimizations](https://docs.wpwaterfall.com/speed-optimizations). It has no card of its own.

## Quick answers

**My plugin does not see the country.**
Check that the Geolocation card offers **Disable**, which means it is on.

**My plugin sees the country but not the city.**
The page is cached. Exclude it on the Caching tab, or read the city on the cart, checkout, or account pages.

## API and MCP

- `PATCH /v1/environments/{id}/tools/settings`
- `POST /v1/environments/{id}/tools/cache/clear` (MCP: `clear_cache`)
- `POST /v1/environments/{id}/tools/php/restart` (MCP: `restart_php`)
- `PUT /v1/environments/{id}/tools/auto-login` (MCP: `set_auto_login_enabled`)
- `PUT /v1/environments/{id}/tools/server-cron` (MCP: `set_server_cron_enabled`)
- `PUT /v1/environments/{id}/tools/redirects` (MCP: `set_redirects_enabled`)
- `PUT /v1/environments/{id}/tools/ip-deny` (MCP: `set_ip_deny_enabled`)
- `PUT /v1/environments/{id}/tools/block-xmlrpc` with `{"enabled": false}` (MCP: `set_block_xmlrpc`)
- `GET` and `PUT /v1/environments/{id}/edge/settings`

## Related

- [Change PHP settings](https://docs.wpwaterfall.com/tools-php-settings)
- [Edge cache and CDN](https://docs.wpwaterfall.com/edge-cache)
- [Run WP-CLI commands](https://docs.wpwaterfall.com/tools-wp-cli)
- [Search and replace in the database](https://docs.wpwaterfall.com/tools-search-replace)
