Login IP Guard: IP Allow-List, Login History & Lockout
by Viyug Infotech https://viyuginfotech.com
Only the right people, from the right places.
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.
IP and CIDR rulesLogin historyLock-outEmail alerts
Three steps
Install, add a rule when you need one, watch the history.
Add a rule
Choose the users or groups and list the addresses they may sign in from.
Test it
Use the rule tester to check an address, then save. You cannot lock yourself out.
Watch the history
See who signed in from where, which attempts were blocked and who got locked out.
What you get
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.
See it

Blocked address, clear message

Login history with filters

Pivot by user and result

Sign-ins per day

A rule for users or groups

All rules at a glance

Test an address before rollout

Lock-out after repeated failures

Settings
How it compares
| Feature | This app | Typical alternatives |
|---|---|---|
| IP allow-list per user | Yes | Yes |
| Per group rules | Yes | Rarely |
| CIDR ranges and IPv6 | Yes | No |
| Time-limited rules | Yes | No |
| Login history with reason | Yes | Basic |
| Pivot and graph of sign-ins | Yes | No |
| Lock-out after failed attempts | Yes | No |
| Email on new IP and lock-out | Yes | No |
| Protects API keys and open sessions | Yes | No |
| Prevents locking yourself out | Yes | No |
| Forwarded address only behind a proxy | Yes | No |
| Rule tester and one-click unlock | Yes | No |
Questions
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.
Support
Questions or ideas? We answer every message.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
Built by Viyug Infotech
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 828 |
| Technical Name |
login_ip_guard |
| License | LGPL-3 |
| Website | https://viyuginfotech.com |
Please log in to comment on this module