If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

PlexBan

PlexBan is a project created using Python and PostgreSQL. The main purpose of the project is to manage auto-magically user connections authorization on Plex Media Server (PMS). By verifying the PMS sessions XML file, PlexBan will notice if a) the same username is seen multiple times using different IP addresses or if b) multiple IP addresses are toggling for one specific user. A Ban Flag can be raised based on a token system related to time stamps, all logged into PostgreSQL DB. Project is available on Windows and Linux. Firewall rules are then created based on the ban flag status (IPtables, Windows Firewall), per connection, until the timer expires; default is 900 seconds. Can be used for multiple PMS design.

Code soon available on both OS (Linux/Windows) (~Sept 15 2016). Currently only "tested" on windows 7+.

~K

code available here
docs available here

Comments

  • sprintexsprintex Posts: 14Members, Plex Pass Plex Pass

    Is this code still around? Couldn't find on Git. Thanks

  • foebikfoebik Posts: 602Members, Plex Pass Plex Pass

    This would be cool to play with if it exist somewhere.

  • pg_kbeapg_kbea Posts: 2Members

    Code still exist, remapped to https://github.com/kbea/pleXcan

    Make sure you check the Wiki. I know it is not really detailed... it was meant to a be a small project. Let me know if I can help.

  • foebikfoebik Posts: 602Members, Plex Pass Plex Pass

    I have been trying to get this to work today. So far it's been hit or miss. Maybe a bit more details in the steps would be of help to me. Such as what I should expect when I do different steps. Step 2 and 3 are very general. More details would be a huge help. -Thanks

Sign In or Register to comment.