Kicking clients

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Goddes
Posts: 15
Joined: 25 Jan 2014, 21:08

Kicking clients

Postby Goddes » 14 Jan 2016, 19:20

Hello there, there is a possible way to kick clients if you spam userVariablesUpdate using some kind of tool, that hack is also popular in YoVille and sending too much of these packets make the people in the room disconnect, is there any way I can limit them or something so the person who's trying to hack cannot spam at all?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Kicking clients

Postby Lapo » 15 Jan 2016, 09:19

Hi,
no there isn't a system like that in SFS 1.x, although it exists in the latest SmartFoxServer 2X.

For SFS 1.x I would recommend routing the setUserVariables to an Extension so that you have full control of the requests and apply any kind of filtering (and ultimately kicking/banning) you may need.

This requires substituting the setUserVariables calls from client side with Extension calls to your server-side code which in turn will validate and execute the call from server side.
Alongside you can configure the server to refuse any UserVariable req. from client side via the <DisabledSysActions> tag.

More details are found here:
https://www.smartfoxserver.com/docs/1x/ ... basics.htm

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 50 guests