HTTP security: Difference between revisions

From MoodleDocs
(page update)
m (Added wikipedia link to [https://en.wikipedia.org/wiki/HTTPS HTTPS])
Line 1: Line 1:
{{Security}}
{{Security}}
HTTPS for logins can be enabled by an administrator in ''Settings > Site administration > Security > HTTP security''.
[https://en.wikipedia.org/wiki/HTTPS HTTPS] for logins can be enabled by an administrator in ''Settings > Site administration > Security > HTTP security''.


==Use HTTPS for logins==
==Use HTTPS for logins==
HTTPS encrypts the user's login data, so it's difficult to sniff out a user's username and password on the network. You will need to enable HTTPS on your server before you turn on this setting, or else you will be locked out of your site. Every web server has a different method for enabling HTTPS, so you should check the documentation for your web server.
[https://en.wikipedia.org/wiki/HTTPS HTTPS] encrypts the user's login data, so it's difficult to sniff out a user's username and password on the network. You will need to enable HTTPS on your server before you turn on this setting, or else you will be locked out of your site. Every web server has a different method for enabling HTTPS, so you should check the documentation for your web server.


It is not recommended that you use this setting as it's not secure despite using HTTPS for logins.
It is not recommended that you use this setting as it's not secure despite using HTTPS for logins.
Line 11: Line 11:
==Secure cookies only==
==Secure cookies only==


It is recommended to use secure cookies only when serving over SSL. When not serving over SSL, the setting is ignored. In Moodle 3.1.2 onwards, the 'Secure cookies only' default setting is on.
It is recommended to use secure cookies only when serving over [https://en.wikipedia.org/wiki/Transport_Layer_Security SSL]. When not serving over SSL, the setting is ignored. In Moodle 3.1.2 onwards, the 'Secure cookies only' default setting is on.


==See also==
==See also==

Revision as of 14:07, 4 August 2017

HTTPS for logins can be enabled by an administrator in Settings > Site administration > Security > HTTP security.

Use HTTPS for logins

HTTPS encrypts the user's login data, so it's difficult to sniff out a user's username and password on the network. You will need to enable HTTPS on your server before you turn on this setting, or else you will be locked out of your site. Every web server has a different method for enabling HTTPS, so you should check the documentation for your web server.

It is not recommended that you use this setting as it's not secure despite using HTTPS for logins.

You are also unable to use the SSL proxy setting at the same time

Secure cookies only

It is recommended to use secure cookies only when serving over SSL. When not serving over SSL, the setting is ignored. In Moodle 3.1.2 onwards, the 'Secure cookies only' default setting is on.

See also

  • MDL-55662 for removing the secure cookies only setting

Forum discussions: