| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 261 |
| Technical Name |
user_login_restriction_by_ip |
| License | AGPL-3 |
| Website | https://thelight.odoo.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 261 |
| Technical Name |
user_login_restriction_by_ip |
| License | AGPL-3 |
| Website | https://thelight.odoo.com |
🌟 Key Features
IP Whitelisting
Allow users to login only from specified IP addresses. Perfect for securing admin accounts.
Per-User Configuration
Set different allowed IPs for each user independently. Flexible and powerful control.
Real-time Validation
IP check happens during login and during active sessions. Automatic logout on IP change.
Multiple IPs Support
Add as many IP addresses as needed per user. Support for office, home, and VPN IPs.
Automatic Blocking
Users from non-whitelisted IPs cannot login. Clear error messages displayed.
Easy Management
Simple interface to add/remove IPs directly from user form. No technical knowledge required.
IP Validation
Automatic validation of IP format. Prevents invalid IPs and duplicate entries.
Comprehensive Logging
All login attempts logged with IP information. Perfect for security audits.
💼 Perfect For
- Restrict admin access to office IP only
- Allow remote employees from specific home IPs
- Prevent account sharing across different locations
- Meet compliance requirements (SOC2, GDPR, HIPAA, PCI-DSS)
- Secure access to sensitive financial data
- Control access for external consultants and contractors
- Prevent brute force attacks from unknown IPs
- Companies with strict security policies
- Multi-location businesses needing location-based access control
📸 Screenshots
User Configuration
Add allowed IP addresses directly in the user form:
Access Denied Message
Clear error message shown when login is blocked:
⚙️ How It Works
Install the Module
Install from Odoo Apps or upload the module to your addons folder. Upgrade the app list and install.
Configure User IPs
Go to Settings → Users & Companies → Users. Select a user and open the "Allowed IP Addresses" tab.
Add IP Addresses
Click "Add a line" and enter the IP address (e.g., 192.168.1.100). Add as many IPs as needed.
Save and Test
Save the user record. The user can now only login from the specified IP addresses.
Automatic Protection
Users from non-whitelisted IPs will see an access denied message. Session monitoring ensures continuous protection.
🔧 Technical Details
Version: 18.0.1.0.0
Dependencies: base, mail, web
License: AGPL-3
Author: The Light EG
Price: $10 USD
Features:
- Override of
res.users._login()method for IP validation - New model
allowed.ipsfor storing whitelisted IPs - JavaScript service for real-time session monitoring
- IP format validation with regex
- Duplicate IP prevention per user
- Comprehensive error handling and logging
- No core file modifications
- Clean uninstall without data loss
📞 Support & Contact
Professional support available for all our modules
📧 Email Support
info@thelight-eg.com
🌐 Website
https://thelight.odoo.com
💬 Live Chat
Available on our website
Please log in to comment on this module