ULX

Author Topic: Stop ban evasion via Steam Family Sharing  (Read 20930 times)

0 Members and 2 Guests are viewing this topic.

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Stop ban evasion via Steam Family Sharing
« on: November 04, 2015, 06:51:18 AM »
Steam Family Sharing Module
Prevents players from evading bans through the Steam Family Sharing feature.

What does this module do exactly?
• Banning someone that is lending Garry's Mod will automatically ban the lender as well.
• Lendees that join your server while their parent account is banned will inherit that same ban on their own account.

Dependencies
This addon requires ULib v2 to work properly.

Download
https://forums.ulyssesmod.net/index.php?action=dlattach;topic=9087.0;attach=1190

Installation
• Extract the downloaded zip archive into your addons folder
• Obtain a Steam Web API key
   – Go to https://steamcommunity.com/dev/apikey and sign in if you haven't already
   – Enter a domain name and tick the checkbox for "I agree to the Steam Web API Terms of Use", then click "Register"
   – Hooray, you now have an API key to use in the next step
• Add your API key to addons/<this_addon>/lua/ulib/modules/server/sfsm.lua (line 20, you can't miss it)
• Optional: Configure notifications (see below)
• Restart your server

Notifications
By default, this module is almost completely silent. In order to enable notifications, add the following to your cfg/server.cfg:
Code: [Select]
// Should superadmins be notified when a lendee joins the game?
sfsm_notify_lendee_join  1

// Should superadmins be notified when a player tries to avoid a ban via SFS?
sfsm_notify_player_avoid 1

// Should superadmins be notified when a lender was banned because of a lendee?
sfsm_notify_lender_ban   1

// Should we send these notifications to regular admins too?
sfsm_notify_admins       1
If your answer to any of these questions is "no" then change the 1 on the next line to 0.

ULX Commands
Code: [Select]
Category: Steam Family Sharing
o ulx lender <player> - Opens the Steam profile page of the person your target is lending the game from. (say: !lender)

Troubleshooting
These console commands will only work from the server console.
Steam Web API Key: sfsm_validate_apikey
Addon notifications: sfsm_validate_notifications

Feedback
If there is anything I can improve on, I'd love to hear it. :)
« Last Edit: July 11, 2018, 12:18:49 AM by Timmy »

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Steam Family Sharing Module for ULib
« Reply #1 on: December 06, 2015, 04:02:29 PM »
This looks truly amazing!!!!!!!!!!!!!!!!!!!!!!!! Im trying it out now!

Offline Luk | twitch.tv/doctorluk

  • Newbie
  • *
  • Posts: 40
  • Karma: 12
Re: Steam Family Sharing Module for ULib
« Reply #2 on: December 11, 2015, 12:19:00 PM »
Hey, thank you very much for this release. I've modified it to work with my SBan installation. If you want to integrate SourceBans and need any help, hit me up on Steam or via PM.

EDIT: To minimize any chances of confusion, maybe you should consider renaming the config variables and add a prefix like "sfsm_" so it will result in "sfsm_notify_admins 1" as "notify_admins" is very generic.
« Last Edit: December 11, 2015, 12:22:44 PM by Luk | twitch.tv/doctorluk »
Host of Spielwiese der Erwachsenen, a German TTT Server for adults only.

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Steam Family Sharing Module for ULib
« Reply #3 on: December 11, 2015, 03:25:16 PM »
Hey, thank you very much for this release. I've modified it to work with my SBan installation. If you want to integrate SourceBans and need any help, hit me up on Steam or via PM.

EDIT: To minimize any chances of confusion, maybe you should consider renaming the config variables and add a prefix like "sfsm_" so it will result in "sfsm_notify_admins 1" as "notify_admins" is very generic.
That's amazing! I will add "SourceBans integration" to my list of things I should do after I finish my exams. :D

Good call on the console variables - they are now prefixed.

Addon updated!
[CHANGE] Console variables are now prefixed with "sfsm_"
[FIX] Lua error when player disconnects before an API response was received

Thank you, Luk. :)

Offline FalZziE

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Steam Family Sharing Module for ULib
« Reply #4 on: December 13, 2015, 01:38:29 PM »
is there a way to see the account this lendee is linked to ?

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Steam Family Sharing Module for ULib
« Reply #5 on: December 13, 2015, 04:52:33 PM »
is there a way to see the account this lendee is linked to ?
Yes, but not yet within this module. Possibly in the next version. :)

Offline FalZziE

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Steam Family Sharing Module for ULib
« Reply #6 on: December 14, 2015, 09:48:49 AM »
ok thx i'll waiting it then :D

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Steam Family Sharing Module
« Reply #7 on: December 18, 2015, 07:47:09 PM »
Addon updates
[ADD] Notification "sfsm_notify_lendee_join" now contains the steamID of the lender
[ADD] ULX now logs the steamID of the lender
[ADD] ULX command: !lender - opens up the Steam profile of the lender
[FIX] Lua error when when parent account is banned without supplying a reason

[Edit 2020-03-27] - Remove dead link
« Last Edit: March 27, 2020, 10:52:14 AM by Timmy »

Offline godfather0001

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Stop ban evasion via Steam Family Sharing
« Reply #8 on: September 10, 2019, 02:23:23 AM »
This is a great addon.

I just wanted to know, is there a way this addon could have an option that stops a family sharing account from joining the server all together? Regardless on whether the main account or shared account is banned or not.

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Stop ban evasion via Steam Family Sharing
« Reply #9 on: September 10, 2019, 05:58:30 AM »
Thanks! :)

No, this addon does not have the ability to disable family sharing.

A quick web search revealed a similar addon: https://github.com/C0nw0nk/Garrys-Mod-Family-Sharing. It mentions the ability to block all family sharing accounts. I think it might meet your requirements.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Stop ban evasion via Steam Family Sharing
« Reply #10 on: May 06, 2020, 04:05:49 AM »
Not that I’m knocking down this addon, I think it’s really cool... but how often do or at the time of 2015 people ban evade on a family shared account. If I was still relevant in this community as well as Garrys mod I am sure I would use this with modifications.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Stop ban evasion via Steam Family Sharing
« Reply #11 on: May 06, 2020, 08:58:27 PM »
Even now i would guess griefers do it often
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Stop ban evasion via Steam Family Sharing
« Reply #12 on: May 07, 2020, 07:18:48 AM »
Ban evasion was rare (maybe 1 user/month) on my servers but still caused enough issues for me to write this addon. :P
« Last Edit: May 07, 2020, 12:15:24 PM by Timmy »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Stop ban evasion via Steam Family Sharing
« Reply #13 on: May 10, 2020, 11:09:15 AM »
Yeah. It was a problem on my old server too.
People who grief servers do this frequently because it's an easy way to get around bans and hide real accounts for free.