- Beiträge: 16
- Dank erhalten: 0
Restrict Limesurvey Admin portal access
7 Monate 6 Tage her #170994
von solte98
COM_KUNENA_MESSAGE_CREATED_NEW
Hi,
Is it possible to restrict the limesurvey admin area by IP address?
we have apache/nginx sousing htaccess file?
Is it possible to restrict the limesurvey admin area by IP address?
we have apache/nginx sousing htaccess file?
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
7 Monate 5 Tage her - 7 Monate 5 Tage her #171041
von t420ss
COM_KUNENA_MESSAGE_REPLIED_NEW
Here is one idea you could try.
What I have done for my phpmyadmin to restrict access:
In /etc/httpd/conf.d/phpMyAdmin.conf file:
Now, phpmyadmin is available from only the server itself (127.0.0.1) and that specific IP (192.168.1.101).
Could you try in a similar way, for example, somewhere in apache's httpd.conf (or some equivalent file ?):
<Directory "/var/www/html/your_limesurvey_root_dir/index.php/admin">
....
....
</Directory>
Let us know how it goes.
What I have done for my phpmyadmin to restrict access:
In /etc/httpd/conf.d/phpMyAdmin.conf file:
<Directory /usr/share/phpMyAdmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1 192.168.1.101
Allow from ::1
</IfModule>
</Directory>
Now, phpmyadmin is available from only the server itself (127.0.0.1) and that specific IP (192.168.1.101).
Could you try in a similar way, for example, somewhere in apache's httpd.conf (or some equivalent file ?):
<Directory "/var/www/html/your_limesurvey_root_dir/index.php/admin">
....
....
</Directory>
Let us know how it goes.
Last edit: 7 Monate 5 Tage her by t420ss.
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
Weniger
Mehr
- Beiträge: 10482
- Karma: 408
- Dank erhalten: 1854
7 Monate 5 Tage her #171056
von DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
COM_KUNENA_MESSAGE_REPLIED_NEW
I think best is to create a new plugin :
manual.limesurvey.org/Authentication_plu...elopment#beforeLogin
Since it's don't need to be default to happen : you can redirect or send a 403 here
manual.limesurvey.org/Authentication_plu...elopment#beforeLogin
Since it's don't need to be default to happen : you can redirect or send a 403 here
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
6 Monate 3 Wochen her #171544
von solte98
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi there,
thanks for putting me on the right path. Under the admin folder I can create a .htaccess file and restrict.
Works fine when someone tries to access limesurvey_root_dir/admin. However, does not work when they use limesurvey_root_dir/index.php/admin
thanks for putting me on the right path. Under the admin folder I can create a .htaccess file and restrict.
Works fine when someone tries to access limesurvey_root_dir/admin. However, does not work when they use limesurvey_root_dir/index.php/admin
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
Weniger
Mehr
- Beiträge: 10482
- Karma: 408
- Dank erhalten: 1854
6 Monate 3 Wochen her #171552
von DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
COM_KUNENA_MESSAGE_REPLIED_NEW
DenisChenu schrieb: I think best is to create a new plugin :
manual.limesurvey.org/Authentication_plu...elopment#beforeLogin
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.