Disable/Enable view Users
Preferences admin define.
- User can
select your preference view profile.
-
If Yes (users can define your preference)
-
Example: Yes (admin select in your perfil
NO)
- Define
if in profile of user can select not view your perfil.
-
Yes/no
- Yes
(logged or anonimous)
Stop guests from viewing profiles
#1824632
I'd like to request a mod to stop guests from
viewing registered user
profiles please.
At present, most XOOPS sites have the
'webmaster/admin' as user #1 , and
any guest can do this:
http://example.com/userinfo.php?uid=1
and get the username, thereby making it easier to
hack into an admin
account. Also, if the users email address is to
be displayed, then any
guest can also view that.
Of course, even if the 'webmaster/admin' is not
user #1, guests can still
find it, by displaying a number of user id's. All
up, not good for website
security.
The mod only needs one line added, the file is
/userinfo.php
AFTER this line ....
include_once
XOOPS_ROOT_PATH.'/class/module.textsanitizer.php';
ADD the following line ........
$xoopsUser or redirect_header('index.php', 3,
_NOPERM);