🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Anti Session Hijacking icon
gepflegt Getestet bis 7.0.9 #21 in ip address

Anti Session Hijacking

Stops session hijacking: signs a user out when their login session is used from a different IP address than the one it started on.

Aktive Installationen<10Neu
Downloads · 30d96▲ +26.3% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score49/100Messe
Downloads aller Zeiten441Since Aug 2026
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 6.0PHP 7.4+
Downloads · 7d15▼ -46.4% week over week
Unser Urteil

Mit Vorsicht verwenden

Anti Session Hijacking works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 49/100 on our health check.

  • Kleine Benutzerbasis (<10 aktive Installationen)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

257Sep 2Oct 16Nov 30
Gestern1
Täglicher Durchschnitt (1 Jahr)4
Spitzentag50Aug 2, 2026
Letzte 12 Monate442

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Anti Session Hijacking stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
ip address >100 7,094 Best ip address plugins →
login security >100 5,186 Best login security plugins →
session hijacking #5 26 Best session hijacking plugins →
Session security >100 3,277 Best Session security plugins →
user sessions >100 4,582 Best user sessions plugins →

About Anti Session Hijacking

From the official readme · v0.8.0

Beschreibung

If someone steals a logged-in user’s session cookie, WordPress has no way of knowing. The cookie is valid, so the attacker is simply treated as that user — no password needed, and two-factor authentication never comes into play, because no new login ever happens.

Anti Session Hijacking closes that gap. It remembers the IP address each session was created from, checks it on every logged-in request, and immediately ends the session if the request comes from somewhere else. A stolen cookie stops working the moment it’s used from another machine.

Wie es funktioniert

WordPress core already records the IP address for every session token it issues at login. This plugin compares that recorded IP against the IP of each later request using the same session. On a mismatch it destroys that session token, clears the authentication cookie, and redirects the user to the login screen with an explanation. Other sessions belonging to the same user are left alone.

There is nothing to configure to get started — the check is active for every role as soon as you activate the plugin.

Merkmale

  • Verifies the client IP on every logged-in request against the IP recorded when the session was created.
  • Immediately ends the hijacked session and signs the user out, without touching their other sessions.
  • Per-role control: enforce it for Administrators and Editors, relax it for roles that move between networks.
  • Mismatch Activity log showing the user, the login IP, the IP that triggered the mismatch, whether it came from the same browser, and what kind of request ended the session — enough to tell a colleague switching on a VPN apart from something worth investigating.
  • Correct client IP detection behind a reverse proxy, load balancer, or CDN such as Cloudflare, using X-Forwarded-For — trusted only when the connection genuinely originates from a known proxy, so the header cannot be spoofed to bypass the check.
  • Runs entirely on your own server. No external requests, no third-party services, no accounts.
  • Lightweight: one comparison per request, no dashboard nags, no upsells.

Who it’s for

This suits sites where an administrator or editor account being taken over would be expensive: membership sites, WooCommerce stores, client sites, multi-author publications, and any site where staff log in over the public internet.

It pairs well with two-factor authentication. 2FA protects the moment of logging in; this protects the session that exists afterwards.

What this plugin does not do

Being clear about the limits, so it’s the right fit:

  • It does not block brute-force attacks or scan for malware — it only guards existing sessions.
  • It does not stop an attacker who is on the same IP address as the victim.
  • It cannot help if the site is served over plain HTTP, where cookies can be read in transit. Use HTTPS.
  • Users whose IP address legitimately changes mid-session — some mobile networks, some corporate proxies, some VPNs — will be signed out and need to log in again. The per-role setting exists for exactly this reason.

Installation

  1. Upload the anti-session-hijacking folder to the /wp-content/plugins/ directory, or install the plugin through the Add Plugins screen in WordPress.
  2. Aktivieren Sie das Plugin über den Bildschirm „Plugins“ in WordPress.
  3. That’s it — the check is immediately active for all roles. To adjust which roles it applies to, go to Settings → Anti Session Hijacking.

Änderungsprotokoll

0.8.0

  • Fixed: on WooCommerce sites, administrators were repeatedly signed out while doing nothing unusual. WooCommerce bundles Action Scheduler, which starts background work by having the site send an HTTP request to itself and forwards the logged-in user’s cookies with it. That request arrives from the server’s own address, so a perfectly valid session looked like it had moved to a new machine. WordPress’s own Site Health loopback tests do the same thing.
  • Requests a site makes to itself are no longer treated as hijacks. They are also no longer used to record a session’s address, which would have caused the opposite problem — the real user’s next request would then have looked like the intruder. Remote requests are checked exactly as strictly as before.

0.7.0

  • Sessions ended during a background request — the admin heartbeat, an admin-ajax call, a REST call — now explain themselves. Previously the browser never followed the redirect, so the first thing you saw was WordPress’s own “Your session has expired” prompt, which gave no clue that this plugin was responsible. The login screen now states the real reason instead.
  • The Mismatch Activity log records two new details: whether the request came from the same browser as the session it belongs to, and what kind of request ended it. A different address from the same browser is usually one person changing network or switching on a VPN, while a different address from a different browser is worth a closer look.

0.6.0

  • Fixed: activating the plugin on a site behind a reverse proxy or CDN signed every logged-in user out and recorded a false entry in the Mismatch Activity log. Sessions created before activation carried the IP that WordPress core records (the proxy’s address), which the plugin then compared against the real visitor address it resolves itself — a guaranteed mismatch that was never an actual hijack.
  • The plugin now records and compares its own IP value instead of reusing the one written by WordPress core, so the two can no longer disagree. A session first seen after upgrading is adopted at its current address and guarded from that point on, which means upgrading to this version does not sign anyone out either.

0.5.0

  • Automatic updates for this plugin are now switched on when it is activated, so security fixes arrive without waiting for a manual update. It uses WordPress’s own per-plugin setting, stays visible in the Automatic Updates column on the Plugins screen, and can be turned off there at any time.

0.4.0

  • Added translations for Dutch, German, French, and Spanish.
  • Added a translation template (.pot) so the plugin can be translated into further languages.

0.3.0

  • Renamed all internal classes, functions, options, and hooks to a unique ANTISEHI prefix to avoid any chance of collisions with other plugins.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

Per-role settings under Settings → Anti Session Hijacking. Every role is protected by default; untick a role to relax the check for it.
Per-role settings under Settings → Anti Session Hijacking. Every role is protected by…
The Mismatch Activity log, showing each session that was ended, the IP it logged in from, and the IP that triggered the mismatch.
The Mismatch Activity log, showing each session that was ended, the IP it logged in from…

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Anti Session Hijacking alternatives

All ip address plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 IP2Location Country Blocker IP2Location Country Blocker Blocks unwanted visitors from accessing your frontend (blog pages) or backend (admin area)… by IP2Location 20K+ ★★★★★★★★★★ 4.1 (128) Vor 2 Wochen 86
2 User IP and Location User IP and Location Want to show your website visitors their IP address, location, and other cool details? This… by Sunny Kumar 3K+ ★★★★★★★★★★ 4.2 (9) Vor 6 Monaten 54
3 IP-Adresse anzeigen IP-Adresse anzeigen Lassen Sie Besucher die IP-Adresse überprüfen, die Ihre Website sieht, mit optionalem Hostnamen, Browser und… Von Keith Griffiths 900+ ★★★★★★★★★★ 5 (5) Vor 4 Wochen 82
4 User Location and IP User Location and IP Show visitor IP, country, city and flag, show content by country, redirect by country and… by Sunny Bundel 300+ ★★★★★★★★★★ 5 (2) Vor 3 tagen 76
5 Show Visitor IP Show Visitor IP Show Visitor IP - Simply display visitor IP Address & visitor another location info using… Von Vikas Sharma 300+ ★★★★★★★★★★ 3.6 (5) Vor 3 Monaten 71
6 Log Visitor IPs Log Visitor IPs This plugin allows you to log the IP addresses of website visitors and view them in your… by Yekusiel Eckstein 100+ ★★★★★★★★★★ Keine Bewertungen Vor 5 Monaten 57
7 IP Address Widget II IP Address Widget II Show the visitor's information in a widget, including the IP address, country, flag, city… by myproxy 100+ ★★★★★★★★★★ 4.3 (3) Vor 2 Monaten 69
8 Post Author IP Post Author IP Records the IP address of the original post author when a post first gets created. von Scott Reilly 60+ ★★★★★★★★★★ Keine Bewertungen Vor 5 Jahren 25
9 MDL Local Geo Lookup MDL Local Geo Lookup Detect visitor location from a self-hosted IP geolocation database — no external API calls… by Monday Digital Lab 50+ ★★★★★★★★★★ Keine Bewertungen Vor 1 Woche 68
10 User Allowed IP Addresses User Allowed IP Addresses Simple plugin that gives the ability to restrict login access to specific IP addresses for… by Matt Pramschufer 20+ ★★★★★★★★★★ 5 (1) Vor 11 Jahren 31

Fragen und Antworten

Anti Session Hijacking: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Anti Session Hijacking free?

Yes. Anti Session Hijacking is free to download and use from the official WordPress.org plugin directory.

Is Anti Session Hijacking safe to use in 2026?

Anti Session Hijacking works, but test it on a staging site before relying on it in 2026. Was last updated 4 months ago, and scores 49/100 on our health check.

How many websites use Anti Session Hijacking?

Anti Session Hijacking is active on <10 WordPress websites and has been downloaded 441 times since it launched in August 2026. It was downloaded 96 times in the last 30 days.

Does Anti Session Hijacking work with WordPress 7.1?

Anti Session Hijacking is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Anti Session Hijacking need?

Anti Session Hijacking requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Anti Session Hijacking last updated?

The latest version, 0.8.0, was released on August 4, 2026 (4 months ago).

Who makes Anti Session Hijacking?

Anti Session Hijacking is developed and maintained by Martin van Wilderen.

What are the best alternatives to Anti Session Hijacking?

The most popular alternatives to Anti Session Hijacking are IP2Location Country Blocker (20K+ installs), User IP and Location (3K+ installs) and Show IP Address (900+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen