db76 at riseup.net
2021-Oct-23 06:15 UTC
[Icecast] Preventing connections from unknown user agents
Hi, I?m hoping for some advice on keeping away unwanted connections to the server. I have streams on two mount points that are receiving connections from a number of users that have an ?unknown? user agent. Sometimes I get these types of connections on both mount points simultaneously from the same IP which leads me to believe that they?re not legitimate listeners - perhaps a bot, ripper, or metadata leech. I already have a script that kicks any user that connects to both mount points simultaneously from the same IP address. However, I?d like to know I if it might help if I added the following lines in a robots.txt file? User-Agent: * Allow: / User-agent: unknown Disallow: / I don?t currently have a robots.txt set up. If this won?t help, can anyone suggest a better way to prevent such connections? Thanks Damian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20211023/58afd725/attachment.htm>
I Domian, sorry I cannot answer your question. But I would like to point out, that I have also some IPs which try to connect to my Icecast streamer with an empty user agent. But also with known user agents, which try to connect for 7/24. I don?t allow them to connect. One is retrying it almost every minute. Anybody know what is behind that? Thanks, Hans-Georg Von: Icecast [mailto:icecast-bounces at xiph.org] Im Auftrag von db76 at riseup.net Gesendet: Samstag, 23. Oktober 2021 08:15 An: icecast at xiph.org Betreff: [Icecast] Preventing connections from unknown user agents Hi, I?m hoping for some advice on keeping away unwanted connections to the server. I have streams on two mount points that are receiving connections from a number of users that have an ?unknown? user agent. Sometimes I get these types of connections on both mount points simultaneously from the same IP which leads me to believe that they?re not legitimate listeners - perhaps a bot, ripper, or metadata leech. I already have a script that kicks any user that connects to both mount points simultaneously from the same IP address. However, I?d like to know I if it might help if I added the following lines in a robots.txt file? User-Agent: * Allow: / User-agent: unknown Disallow: / I don?t currently have a robots.txt set up. If this won?t help, can anyone suggest a better way to prevent such connections? Thanks Damian -- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20211023/a3bed066/attachment.htm>
Yahav Shasha
2021-Oct-23 19:04 UTC
[Icecast] Preventing connections from unknown user agents
I think 'listener_add' (url listener auth) is your best option besides modifying icecast itself: https://icecast.org/docs/icecast-latest/auth.html ?????? ???, 23 ????? 2021, 09:20, ??? ?<db76 at riseup.net>:> Hi, > > > I?m hoping for some advice on keeping away unwanted connections to the > server. > > > I have streams on two mount points that are receiving connections from a > number of users that have an ?unknown? user agent. Sometimes I get these > types of connections on both mount points simultaneously from the same IP > which leads me to believe that they?re not legitimate listeners - perhaps a > bot, ripper, or metadata leech. > > > I already have a script that kicks any user that connects to both mount > points simultaneously from the same IP address. However, I?d like to know I > if it might help if I added the following lines in a robots.txt file? > > > User-Agent: * > > Allow: / > > > User-agent: unknown > > Disallow: / > > > I don?t currently have a robots.txt set up. If this won?t help, can anyone > suggest a better way to prevent such connections? > > > Thanks > > Damian > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20211023/3a47d215/attachment.htm>