karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

Prevent duplicate listeners #296

Open ibcs01 opened 4 years ago

ibcs01 commented 4 years ago

Hi Karl,

Is it possible to prevent listeners to open multiple connections to the same mountpoint?

Broadcasters sometimes do this to increase the listener count on their own stream. Nice for them, but it costs us bandwidth. Is there an option in Icecast to prevent this?

Grt Sven

karlheyes commented 4 years ago

not on the same mountpoint without you involving your own auth filter. To do this server-wide, define the tag banfile or deny-ip in paths to refer to a file (it can be an empty file) then in the mount block add a tag -1. That should add the IP into the internal banned list and that should prevent others until the current client disconnects.

karl.