user agent block

Ask Questions or make comments about Mp3 Toolbox
Post Reply
radiocor
Posts: 17
Joined: Wed Feb 23, 2005 1:12 am
Contact:

user agent block

Post by radiocor » Fri Apr 08, 2005 5:38 am

Is there a definitive way to block Windows Media Player, Real Player and Quicktime from getting any access to the mp3toolbox radio stream.

I have used RAM and NSPlayer in the $agent_block, it has stopped them playing the stream, but they still attempt to and it throws the script into disarray - the debug goes wild and won't stop sending the stream over and over again.

All three I find are dreadful things and although I will from now on encourage any listeners not to use them someone might try and be clever - and now it seems there could be dire concquences.

The reason I ask is this:

Http Code: 200 Date: Apr 07 03:50:11 Http Version:HTTP/1.1 Size in Bytes: 536988900
Referer: - Agent: NSPlayer/9.0.0.3250


Just 2 hours listening with Windows Media Player 536mb! Winamp by comparsion was only 53mb (correctly).

I've got a good bandwidth package, but never that good!

User avatar
Jay
Will work for food (Administrator)
Posts: 2867
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay » Fri Apr 08, 2005 7:52 am

there is no definitive way to block any client, user-agent is just a self identifyer. WIndows media will attempt to use an ie user-agent as well. It is odd that this is exactly 10X the original file size. Are you certain that it is actually transferring this much data?
- Jay

radiocor
Posts: 17
Joined: Wed Feb 23, 2005 1:12 am
Contact:

Post by radiocor » Fri Apr 08, 2005 9:26 am

Oh absolutely certain. It came right off my bandwidth useage for the day.

Looking at the debug report it's absurd the way the thing does it, look at this - sorry about how long it is, blame Windows Media Player not me:

<04/08/2005 16:02:19> [mode: radio] [dest: 127.0.0.1] [user: ] Stream Started by 127.0.0.1
<04/08/2005 16:02:19> [mode: radio] [dest: 127.0.0.1] [user: ] STATUS: HEADER SENT
<04/08/2005 16:02:19> [mode: radio] [dest: 127.0.0.1] [user: ] MODE: Playlist Script Enabled
<04/08/2005 16:02:19> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/nights] (optional shuffle)
<04/08/2005 16:02:19> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /test_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 822
<04/08/2005 16:02:19> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/nights/test_1.mp3
<04/08/2005 16:02:20> [mode: radio] [dest: 127.0.0.1] [user: ] CONNECT-KILL: (1) Connection has been terminated by the client {1secs}
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] Stream Started by 127.0.0.1
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] STATUS: HEADER SENT
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] MODE: Playlist Script Enabled
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/nights] (optional shuffle)
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /test_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 822
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/nights/test_1.mp3
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] CONNECT-KILL: (1) Connection has been terminated by the client {0secs}
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] Stream Started by 127.0.0.1
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] STATUS: HEADER SENT
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] MODE: Playlist Script Enabled
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/nights] (optional shuffle)
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /test_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 822
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/nights/test_1.mp3
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] CONNECT-KILL: (1) Connection has been terminated by the client {0secs}
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] Stream Started by 127.0.0.1
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] STATUS: HEADER SENT
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] MODE: Playlist Script Enabled
<04/08/2005 16:02:21> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/nights] (optional shuffle)
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /test_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 822
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/nights/test_1.mp3
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] FUSEPOINT END 170
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/promos] (optional shuffle)
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /promo_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 61
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/promos/promo_1.mp3
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] FUSEPOINT END 8192
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] CONNECT-KILL: (1) Connection has been terminated by the client {1secs}
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] Stream Started by 127.0.0.1
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] STATUS: HEADER SENT
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] MODE: Playlist Script Enabled
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/nights] (optional shuffle)
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /test_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 822
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/nights/test_1.mp3
<04/08/2005 16:02:22> [mode: radio] [dest: 127.0.0.1] [user: ] CONNECT-KILL: (1) Connection has been terminated by the client {0secs}
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] Stream Started by 127.0.0.1
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] STATUS: HEADER SENT
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] MODE: Playlist Script Enabled
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/nights] (optional shuffle)
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /test_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 822
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/nights/test_1.mp3
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] CONNECT-KILL: (1) Connection has been terminated by the client {0secs}
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] Stream Started by 127.0.0.1
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] STATUS: HEADER SENT
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] MODE: Playlist Script Enabled
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/nights] (optional shuffle)
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /test_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 822
<04/08/2005 16:02:23> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/nights/test_1.mp3
<04/08/2005 16:02:32> [mode: radio] [dest: 127.0.0.1] [user: ] FUSEPOINT END 5787
<04/08/2005 16:02:32> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/promos] (optional shuffle)
<04/08/2005 16:02:32> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /promo_1.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 61
<04/08/2005 16:02:32> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/promos/promo_1.mp3
<04/08/2005 16:02:32> [mode: radio] [dest: 127.0.0.1] [user: ] FUSEPOINT END 8192
<04/08/2005 16:02:39> [mode: radio] [dest: 127.0.0.1] [user: ] FUSEPOINT END 0
<04/08/2005 16:02:39> [mode: radio] [dest: 127.0.0.1] [user: ] NEW-LIST: Creating new list [../library/breaks] (optional shuffle)
<04/08/2005 16:02:39> [mode: radio] [dest: 127.0.0.1] [user: ] LOADING_FILE: /promo_2.mp3 - br: 56 - fq: 44100 - md: Joint Stereo - lg: 59
<04/08/2005 16:02:39> [mode: radio] [dest: 127.0.0.1] [user: ] FOPEN: ../library/breaks/promo_2.mp3
<04/08/2005 16:02:39> [mode: radio] [dest: 127.0.0.1] [user: ] FUSEPOINT END 8192
<04/08/2005 16:03:00> [mode: radio] [dest: 127.0.0.1] [user: ] CONNECT-KILL: (1) Connection has been terminated by the client {37secs}


Absurd and just for 37seconds of listening!

In addition I found it dumps it all in the users Temporary Internet Folder, where it remains hidden where it does cause problems see here as you can imagine they aren't bothered about fixing it.

It's a pity there's not a way of keeping them away completely, better for all if there was.

Post Reply