< Path Variables | Variables | Upload Variables >
$AllowPassword
@nopass
" instead. If your wiki is old and/or may contain pages with the "nopass
" password, you should not change it. If that variable is empty or set to false, PmWiki will not check if pages have a special "allowed password".
$PmCryptAlgo
$PmCryptAlgo = PASSWORD_ARGON2ID;
$RehashedPassword
$AuthUserPageFmt
$DefaultPasswords
$DenyHtaccessContent
.htaccess
files created by PmWiki in new directories under wiki.d
. The Apache server changed these directives in version 2.4. The default value should work for both new and older server versions.
$EnablePostAttrClearSession
$EnablePostAttrClearSession
to zero.
$EnableSessionPasswords
$SetCookieFunction
pmsetcookie()
. Should accept the same arguments as pmsetcookie()
.
$EnableCookieSecure
pmsetcookie()
.$EnableCookieHTTPOnly
pmsetcookie()
.$CookieSameSite
pmsetcookie()
, default to 'Lax'. See article about the implications.
$SessionEncode
$SessionDecode
below.)
$SessionDecode
$SessionEncode
above. Set this to NULL if sensitive session values are not encoded.
$HandleAuth
config.php
you need to be authenticated as editor in order to view the page history:
$HandleAuth
['diff'] = 'edit';
$PageAttributes
$AuthLDAPBindDN
$AuthLDAPBindPassword
$AuthLDAPBindDN
above).
$AuthLDAPReferrals
$MultiFactorAuthFunction
AuthUserId()
if the password authentication has succeeded. This function is called with arguments the username and password, and should return true if the 2FA has succeeded, false otherwise.
$FailedLoginsFunction
$EnablePublishAttr
$EnableDrafts
.
$EnablePageVarAuth
$RobotActions
$RobotActions
['download'] = 1;
# allow bots to download files with disabled $EnableDirectDownload
(page permissions are respected)$RobotActions
['rss'] = 0;
# disallow bots from getting the RSS feed$RobotActions
['print'] = 1;
# allow bots to get the print view$RobotPattern
$EnableRobotCloakActions
?action=
values from page links returned to robots, which will reduce bandwidth loads from robots even further.
$AuthFormRespCode
$EnableDirectDownload
), you can set in config.php: if ($action == 'download') $AuthFormRespCode = 403;
See also:
< Path Variables | Variables | Upload Variables >
This page may have a more recent version on pmwiki.org: PmWiki:SecurityVariables, and a talk page: PmWiki:SecurityVariables-Talk.