What Login IP Guard does
Limit sign-ins to your office and VPN addresses, see every attempt in a searchable history and lock out guessing before it works. Nothing is restricted until you add a rule.
Restrict logins to allowed IP addresses and CIDR ranges per user or group, keep a searchable login history, lock out brute-force attempts and get emails on new-IP logins.
- IP and CIDR rules
- Login history
- Lock-out
- Email alerts
Features
Allowed IPs, CIDR and IPv6
Enter single addresses or ranges such as 10.0.0.0/8 or 2001:db8::/32, one per line, with # comments.
Per user or per group
Cover named users, whole groups or both. People no rule covers are never restricted, so nothing changes until you add one.
Time-limited rules
Give a contractor VPN access for a quarter: rules switch on and off by date, no clean-up needed.
No self lock-out
Saving a rule that would cut off your own account is refused, the form warns you first, and administrators always get in from emergency ranges.
Login history
Every sign-in, failure, blocked address and lock-out with IP, browser, method and reason. List, pivot and graph with ready filters.
Lock-out after N failures
Block a login from one address for M minutes. Unknown logins are counted too, so attackers cannot tell which accounts exist.
Email alerts
The user and/or administrators are emailed when a login comes from a new IP and when an account is locked out.
Covers API and open sessions
The same rules apply to external API calls, API keys and browser sessions that are already open.
Proxy aware
The forwarded client address is used only when Odoo runs behind a trusted proxy. A spoofed header is ignored otherwise.
Rule tester
Pick a user and an address and see allowed or blocked, with the rules that decided it, before you roll out.
One-click unlock
Release a locked login from the history, no database access needed.
Automatic clean-up
History older than your retention period is removed daily.
Screens



Questions about Login IP Guard
Will it lock me out?
No. Saving a rule that would block your own account from your current address is refused, and administrators can always sign in from the emergency ranges you set (localhost by default).
Who is restricted?
Only users and groups named in an active rule. Everyone else signs in as before.
What if my users share one office address?
Add the office range once to a group rule. Lock-out is counted per login and address, so one person mistyping does not block colleagues.
Does it work behind a reverse proxy?
Yes. Turn on proxy mode in Odoo and the address added by your proxy is used. Without proxy mode forwarded headers are ignored.
Can I switch it off quickly?
Yes, with one master switch in the settings, or with an environment variable on the server if you ever need to get back in.
