Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time-Based Account Sharing Bans #15

Merged
merged 1 commit into from
Apr 8, 2023
Merged

Conversation

AndrewPaglusch
Copy link
Owner

This adds a new (optional) method of detecting account sharing. If enabled, the script will keep track of a user's history and analyze it for account sharing.

The following settings are added to change how this works:

  • USER_HISTORY_BAN_ENABLED: This variable is a boolean flag that enables or disables the history-based banning feature. Set to "true" to enable history-based banning, and "false" to disable it. On a busy server, this can potentially consume a large amount of memory, especially if LOOP_DELAY_SECONDS is set very low, or USER_HISTORY_LENGHT_HRS is set very high.
  • USER_HISTORY_LENGTH_HRS: This variable specifies the duration in hours for which the user's streaming history should be considered when evaluating for history-based banning.
  • USER_HISTORY_BAN_IP_THRESH: This variable sets the maximum number of unique IP addresses a user is allowed to have in their streaming history within the specified USER_HISTORY_LENGTH_HRS before being considered for account sharing.

Fixes #14

@AndrewPaglusch AndrewPaglusch merged commit f518353 into master Apr 8, 2023
@AndrewPaglusch AndrewPaglusch deleted the time-based-bans branch April 8, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR:root:Error getting streams from Plex: 'device'
2 participants