Safer Cookies icon
Analytics & Tracking

Safer Cookies

Ties the WP session cookie to your IP address so that it can't be used to get access to you blog from another computer.

Developer Janis Elsts
38 Needs attentionmaintenance
  • 18 yearson WordPress.org
  • 8plugins
  • 330,760+installs in total
  • 4.6★avg. rating (412)
  • 25%of plugins updated this year
7/14 badges Profile →

Not recommended for new sites

Is Safer Cookies still safe to use?

  • Problem: Not maintained Last updated 17 years ago (version 1.2).
  • Problem: Not tested with recent WordPress Tested up to WordPress 2.9; the current release is 7.1.
  • Note: Few reviews so far No ratings on WordPress.org yet.
  • Note: Small user base Active on 10+ sites.

For a new site, or if you are planning a rebuild, choose a plugin that is still maintained. Unmaintained plugins stop getting security fixes and tend to break as WordPress and PHP move on.

No maintained plugin does exactly the same job. We checked the directory for an actively updated, well-rated plugin with the same features and didn't find a safe match.

If your site depends on Safer Cookies, we can update it for current WordPress and PHP versions, review it for security problems, or rebuild the feature you need.

Get it updated Check all your plugins Browse maintained Analytics & Tracking plugins

Overview

Safer Cookies describes itself as: “Ties the WP session cookie to your IP address so that it can't be used to get access to you blog from another computer.”

It is active on 10+ WordPress sites. Developers can extend it through 4 actions and 1 filters, listed below.

We haven't published a hands-on review of Safer Cookies yet. Want one, or need help with it? Send us a request.

How to install Safer Cookies

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Safer Cookies” and pick the one by Janis Elsts.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install safer-cookies --activate

Requirements: WordPress 2.5+ · tested up to WordPress 2.9.2

Hooks & customisation

Safer Cookies 1.2 fires 4 actions and 1 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

safer-cookies — top hooks
// Filter in safer_cookies.php
apply_filters( 'auth_cookie', $cookie, $user_id, $expiration );

// Action in safer_cookies.php
do_action( 'auth_cookie_bad_hash', $cookie_elements );

// Action in safer_cookies.php
do_action( 'auth_cookie_bad_username', $cookie_elements );

// Action in safer_cookies.php
do_action( 'auth_cookie_expired', $cookie_elements );

// Action in safer_cookies.php
do_action( 'auth_cookie_valid', $cookie_elements, $user );

Browse all 5 hooks with examples →

Safer Cookies: frequently asked questions

Is Safer Cookies free?

Yes. Safer Cookies is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is Safer Cookies safe to use?

Safer Cookies has not been updated for 17 years. Plugins without updates stop receiving security fixes, so we recommend a maintained alternative for new sites. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Safer Cookies work with WordPress 7.1?

It isn't confirmed. Safer Cookies was last tested with WordPress 2.9, 42 releases behind the current 7.1, so test it on a staging site before relying on it. It requires WordPress 2.5 or later.

How many websites use Safer Cookies?

Safer Cookies is active on 10+ WordPress sites, according to WordPress.org. It is currently at version 1.2, last updated on December 7, 2009.

What are the best alternatives to Safer Cookies?

We didn't find a maintained plugin that does exactly the same job. Browse the top-rated Analytics & Tracking plugins for related options.

Can I customise Safer Cookies without editing its code?

Yes. Safer Cookies 1.2 fires 4 actions and 1 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 5 hooks with examples.

Done for you

Let us deal with Safer Cookies for you

Move to a maintained plugin without losing your settings, or keep this one and have it brought up to date.

Update an abandoned plugin

from $249

Keep the plugin your site depends on, made safe for current WordPress and PHP.

  • Compatibility with current WordPress and PHP
  • Security review and fixes
  • Deprecated code replaced
  • You keep a maintained copy

Typical turnaround: 5–10 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need Safer Cookies customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Janis Elsts. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 19, 2026.

More plugins by Janis Elsts

All 8 →

Lets you edit the WordPress admin menu. You can re-order, hide or rename menus, add custom menus and more.

300,000+ installs Updated 5 days ago 59 hooks

Adds a Dashboard widget that displays the latest messages from your PHP error log. It can also send logged errors…

20,000+ installs Updated 1 month ago 12 hooks
Not updated in 2+ years

Lets you use raw HTML or any other code in your posts. You can also disable smart quotes and other…

10,000+ installs Updated 2 years ago
Not updated in 5+ years

Hide almost any part of the WordPress admin by using a visual editor.

500+ installs Updated 6 years ago 1 hooks

Alternatives in Analytics & Tracking

See all →

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful…

5+ million installs Updated 5 days ago 91 hooks
Reviewed

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can grow…

2+ million installs Updated 2 months ago 186 hooks
Reviewed
CookieYes icon

CookieYes

3,239

Google-certified CMP: cookie banner, cookie notice and cookie consent for GDPR/CCPA compliance, with cookie blocker, cookie scanner and consent log.

1+ million installs Updated 1 week ago 82 hooks

Publish your cookie banner or notice in minutes. Automatically scan cookies, and create policies to align with GDPR, CCPA, and…

1+ million installs Updated 2 weeks ago 184 hooks