Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Topic started by: xenovanis on May 05, 2005, 06:51:20 PM

Title: Have I almost reached maximum security?
Post by: xenovanis on May 05, 2005, 06:51:20 PM
Because of some hackingattemps and illegal passwordretrieval I made some drastic changes on a forum. This is just a thought, not a problem and it may be helpfull to someone, so I just post it here. Maybe I missed something, but I think it's pretty complete.

This is what I did to protect the forum and the members:


If you want some more info on how I did this, just let me know.  ;) I certainly sleep better now.
Title: Re: Have I almost reached maximum security?
Post by: xd3vilx on May 06, 2005, 08:17:58 AM
No Matter What U Do It Won't Prevent Virus Or Spam..But It Minimise Them...
Title: Re: Have I almost reached maximum security?
Post by: [Unknown] on May 08, 2005, 01:49:29 AM
You should be okay, at this point.  There are other things, theoretically, you could do... but it should be fine at this point without inconveniencing your users.

-[Unknown]
Title: Re: Have I almost reached maximum security?
Post by: dtm.exe on May 08, 2005, 02:18:37 AM
You can also set the time between each post by any user of the same IP.  This can drastically reduce spamming and such.

Admin > Edit Features and Options

-Dan The Man
Title: Re: Have I almost reached maximum security?
Post by: xenovanis on May 08, 2005, 02:22:16 AM
Quote from: OIDanTheManIO on May 08, 2005, 02:18:37 AM
You can also set the time between each post by any user of the same IP.  This can drastically reduce spamming and such.

Admin > Edit Features and Options

-Dan The Man

Yeah, I could, but then again, I think I there will be 300 angry children after me. You have no idea how fast they can post.  :)

Thanks [Unknown], I think it's pretty secure this way, but when the time comes it's not enough anymore I'll knock on your door.  ;)
Title: Re: Have I almost reached maximum security?
Post by: Miraenda on May 21, 2005, 11:53:45 AM
Hi xenovanis,

You posted that you could provide more info on how you did all the options to tighten security.  I'd be interested to see this as it would help to tighten not only my boards but to secure a couple of friends' boards as well if I could get it all setup for them.  I think these are great ideas you've implemented :)

Thanks.
Title: Re: Have I almost reached maximum security?
Post by: xenovanis on May 21, 2005, 11:58:02 AM
Sure, no problem. What do you want to know?
Title: Re: Have I almost reached maximum security?
Post by: Miraenda on May 21, 2005, 12:14:00 PM
Step-by-step how you implemented everything? heh ;)

Well, first on how to change the profile view, is that an option in the admin area or done via editing of the code? Also, what did you remove to take off the user's online names to not show them and only the number? Those are the main 2 I'm not sure about.  The others, since I haven't actually setup a group like you did, I'd have to look into it to see if there is anything I don't understand how to do.  I'll likely try it out on a test board before I do it live so I don't screw up my current members somehow :)
Title: Re: Have I almost reached maximum security?
Post by: xenovanis on May 21, 2005, 12:41:57 PM
Quote from: Miraenda on May 21, 2005, 12:14:00 PM
Step-by-step how you implemented everything? heh ;)

I think my english is too bad for that, it would take me forever  :P

Changing Profile View

This can only be done by editing the files. Be sure to backup before you make any changes.

To show the name instead of the username in Profile -> Summary open the file Profile.template.php (of all your themes) and

find:

', $txt[35], ': ', $context['member']['username'], '


replace with:

', $txt[68], ': ', $context['member']['name'], '


Now, if you're viewing a profile you'll notice that in the titlearea of your browser also the username appears. To get rid of this open Profile.php and find:


'page_title' => $txt[92] . ' ' . $themeUser[$memID]['username'],


replace with:

'page_title' => $txt[92] . ' ' . $themeUser[$memID]['name'],


Hide Users Online

To completely hide the users-online table from guests try this:

In BoardIndex.template.php find


// "Users online" - in order of activity.


add after


if (!$context['user']['is_guest'])


If you want the numbers shown but not the usersnames try this:

In BoardIndex.template.php find


// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.


add after:


if (!$context['user']['is_guest'])


Permissions

If you want to set up this new group with maximum restrictions, just be sure to change 'Ungrouped Members' also to have minimum allowences. This is where I went wrong the first time. The permissions set for my 'junior-group' were okay, but overruled by the 'Ungrouped Members' so in the end they could do most of the things I didn't want them to do.
Title: Re: Have I almost reached maximum security?
Post by: deathshadow on May 26, 2005, 04:54:09 AM
One thing I recommend after finding by accident, you can change the name displayed on the memberlist without changing the login username. If you make sure all the mods have a different actual username they login with from what is displayed on the board, you don't have to worry about having the memberlist displayed, as normal users no longer see your login name!

Simple, expedient. Now not only do they need your password, they need your login name too. I heartily recommend that all admins (and possibly even mods) on a board take that extra step when setting up their accounts.
Title: Re: Have I almost reached maximum security?
Post by: [Unknown] on May 26, 2005, 08:51:44 AM
Well, they could also use your email address.

-[Unknown]
Title: Re: Have I almost reached maximum security?
Post by: Mexican_Pirate on May 26, 2005, 11:23:16 AM
Quote from: xenovanis on May 21, 2005, 12:41:57 PM
Quote from: Miraenda on May 21, 2005, 12:14:00 PM
Step-by-step how you implemented everything? heh ;)

I think my english is too bad for that, it would take me forever  :P

Changing Profile View

This can only be done by editing the files. Be sure to backup before you make any changes.

To show the name instead of the username in Profile -> Summary open the file Profile.template.php (of all your themes) and

find:

', $txt[35], ': ', $context['member']['username'], '


replace with:

', $txt[68], ': ', $context['member']['name'], '


Now, if you're viewing a profile you'll notice that in the titlearea of your browser also the username appears. To get rid of this open Profile.php and find:


'page_title' => $txt[92] . ' ' . $themeUser[$memID]['username'],


replace with:

'page_title' => $txt[92] . ' ' . $themeUser[$memID]['name'],


Hide Users Online

To completely hide the users-online table from guests try this:

In BoardIndex.template.php find


// "Users online" - in order of activity.


add after


if (!$context['user']['is_guest'])


If you want the numbers shown but not the usersnames try this:

In BoardIndex.template.php find


// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.


add after:


if (!$context['user']['is_guest'])


Permissions

If you want to set up this new group with maximum restrictions, just be sure to change 'Ungrouped Members' also to have minimum allowences. This is where I went wrong the first time. The permissions set for my 'junior-group' were okay, but overruled by the 'Ungrouped Members' so in the end they could do most of the things I didn't want them to do.
I see potential for a mod in these security changes.
Title: Re: Have I almost reached maximum security?
Post by: Ben_S on May 26, 2005, 11:25:33 AM
I don't, none of them are going to help with security in honesty.
Title: Re: Have I almost reached maximum security?
Post by: [Unknown] on May 26, 2005, 11:37:42 AM
Although 1.1 does show usernames a lot less.

-[Unknown]
Title: Re: Have I almost reached maximum security?
Post by: Placeman on August 13, 2005, 10:29:42 AM
Quote from: xenovanis on May 21, 2005, 12:41:57 PM
Quote from: Miraenda on May 21, 2005, 12:14:00 PM
Step-by-step how you implemented everything? heh ;)

I think my english is too bad for that, it would take me foreverĀ  :P

Changing Profile View

This can only be done by editing the files. Be sure to backup before you make any changes.

To show the name instead of the username in Profile -> Summary open the file Profile.template.php (of all your themes) and

find:

', $txt[35], ': ', $context['member']['username'], '


replace with:

', $txt[68], ': ', $context['member']['name'], '


Now, if you're viewing a profile you'll notice that in the titlearea of your browser also the username appears. To get rid of this open Profile.php and find:


'page_title' => $txt[92] . ' ' . $themeUser[$memID]['username'],


replace with:

'page_title' => $txt[92] . ' ' . $themeUser[$memID]['name'],


Ok.  This worked, except if I click on "Send this member a personal message," the username shows up in the TO field of the new message.