Restricting access to Users

Hello All!!!

I am wondering if it is possible to restrict access to users to Dolibarr in any of the following two ways:

  1. Users can access only from a selected IP address.
  2. Users can access only from 9.00 am to 15.00 am Monday to Friday.

Basically, we want to avoid security holes, and be sure that access is done in working days or from the office computer.

I searched in the forum and dolistore but did not find anything.

Any ideas?? Thanks!!!

Hi,

For the first one, you need to play with .htaccess : https://www.htaccessredirect.net/block-allow-ip
The point number 2 is quiet difficule… need to developpe a module.

You can restrict it by installing dolibarr in a local server so that employees can access only in office network or LAN connection in same network.

Hi ksar.

Where should I use this code from htaccessdirect?