collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 457
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: How to gather and ban guest ip from simpleportal shoutbox site (Anti-Spam)  (Read 4933 times)

0 Members and 1 Guest are viewing this topic.

Offline dicechild

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Using SMF 2.0.8
Using SP 2.3.5

The shoutbox on our site is being bombarded about once a day by jibberish and links. Having pruned this several times I cannot seem to find the ip of a guest using the shoutbox. If there is a way to easily access this list then I have been daft in finding it. The user that is spamming the shoutbox does not appear to be posting in the forums, so I cannot find them that way.

Thank you,

DC

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
dicechild,
You can always adjust the permissions for the block not to allow guests and/or your new members membergroup viewing/using the shoutbox block.



Another option that may interest you:
You can use the extra shoutbox permissions plug-in to have more control over shoutbox function.
ref. http://simpleportal.net/index.php?topic=11714.0
Make sure to install SP-xtra_shout-perms_v1.21x.zip
The extra settings this modification adds apply to all shoutboxes and are accessable within membergroup permissions.


Regards.

« Last Edit: January 01, 2015, 02:18:13 PM by Chen Zhen »

Offline dicechild

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
I have discussed such a fix with the other admins, but they would like to keep the box available for guest use. Thank you though.

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
dicechild,

  Do you have a mebergroup specifically for members with a very low post count (ie. Newbie)?
If so then you can install the plugin and adjust that membergroup so it does not have the ability to post links.

I think the plug-in does not enable options by default (rather it disables them) therefore if you do use the plugin you will have to go through each membergroup permissions and adjust their Simple Portal shoutbox permissions accordingly.

Offline dicechild

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Chen,

I agree that we can adjust the Newbie permissions so that they cannot post links, but that does not keep guests from spamming the chat at all... It would prevent some of what we are running into, but not all. Is there perhaps a way to collect IP activity on the shoutbox for a specific time period such that I can actually ban specific IP?

Thank you for the help so far.

DC

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
dicechild,

  Guests can not post messages in the Simple Portal shoutbox. Did you install a plug-in or manually adjust the code to be able to enable that option? Is this the actual Simple Portal shoutbox you are talking about or perhaps another 3rd party shoutbox that you are using within a block?

Offline dicechild

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Chen,

I'm not entirely sure about plug-ins or coding, but it is definitely the SP shoutbox and we are using SP version 2.3.5 as per the original post. I cannot see anything that would indicate it is using a plug-in, but I have not been around since the original coding. There is a fairly simple dropdown which indicates I can restrict it, but the limitations are fairly basic. For instance I can set it to members only, but that isn't what I would prefer.

Is there an easy way for me to determine the non-SP formatting that has been done?

Thanks!

DC

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
dicechild,

  Please note that there were security improvements and fixes for the shoutbox with Simple Portal 2.3.6. I am advising you to uninstall version 2.3.5, delete it and then upload/install version 2.3.6.
You should also run the upgrade package for your forum installation which the current version is 2.0.9 (<-- this simply involves a patch).

  You'll have to excuse me for possibly not understanding exactly what you are referring to here and I would like to make sure we are talking about the same thing.

  Normally guests are only able to view the shoutbox and not post anything in it (if permissions are set as such).
Guests which are people that are not actually logged into your forum are able to post links and/or content into the shoutbox?

 
« Last Edit: January 02, 2015, 02:41:28 AM by Chen Zhen »

Offline dicechild

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Chen,

You are correct in that the guests I am talking about are not logged into the forum. This is where I am really running into issues because I have repeatedly suggested to other admins that we make it members only, but I have been overruled. I cannot seem to find any guest information based on their shoutbox posting though, so I am currently manually pruning when there is spam.

Thank you,

DC

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
dicechild,

  Since guests normally do not have the ability to post in the Simple Portal shoutbox, it is in my opinion that someone with ftp access on the forum to which you speak of has altered the code somehow to allow this to occur. Whether it be Simple Portal code that has been altered or SMF code itself is unknown to me at this time but from the issue that you describe I can only surmise this is the case especially since your other co-admin(s) seem to want guests to post in that shoutbox (Imo - whomever is stressing this behaviour is most likely the one who changed it to allow guest shouts).
 
 If for some reason someone has allowed this by altering the code and wishes it to continue then the only resolve I have for you is for me to alter the code to not allow guests to post links if that is the shoutbox behaviour you seek.

  This is assuming that you are actually using the Simple Portal shoutbox and not another 3rd party shoutbox within a Simple Portal PHP or HTML block to initiate it. If you are absolutely sure it is the Simple Portal shoutbox being used and want this behaviour then attach your PortalShoutbox.php file that is located in your website Sources folder and I can alter it to disallow the user group of guests to post links. 

Regards.
« Last Edit: January 02, 2015, 12:19:06 PM by Chen Zhen »

Offline dicechild

  • Semi Newbie
  • *
  • Posts: 6
  • SMF Version: 2.0.8
  • SP Version: 2.3.5
Re: How to gather and ban guest ip from simpleportal shoutbox site (Anti-Spam)
« Reply #10 on: January 02, 2015, 03:17:22 PM »
Ok, before I can alter code I will chat with the other admins and see if they are all right with such action.

Thanks for the help so far though.

DC

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: How to gather and ban guest ip from simpleportal shoutbox site (Anti-Spam)
« Reply #11 on: January 02, 2015, 05:28:52 PM »
dicechild,

  Most likely they extrapolated edits from the following topic: http://simpleportal.net/index.php?topic=9834.0
... even though the edits are not in exactly the same files since Simple Portal has evolved, the concept does work.
Imo this is what someone who admins on the forum you speak of has done or perhaps had someone else perform the necessary edits.

If this is the case then indeed I can help you to not allow guests to post links within the shoutbox.
If the person that performed the editing to allow guests to use the shoutbox wishes to make the necessary edit, it is shown below else you can attach the file I requested and I will do the edit for you.


file: ../Sources/PortalShoutbox.php

find:
Code: [Select]
sportal_create_shout($context['SPortal']['shoutbox'], $_REQUEST['shout']);

replace with:
Code: [Select]
if ($user_info['is_guest'])
{
$search = array('/\[url\](.*?)\[\/url\]/is', '/\[url\=(.*?)\](.*?)\[\/url\]/is', '/\<a(.*)\>(.*)\<\/a\>/iU', "/(?i)\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'\".,<>?«»“”‘’]))/");
$_REQUEST['shout'] = preg_replace($search, "$2", $_REQUEST['shout']);
}
sportal_create_shout($context['SPortal']['shoutbox'], $_REQUEST['shout']);

Regards.