View Full Version : Fixing INvalid Referer?

Jean-Sebastien Morisset
2005-02-14, 08:43

I'm proxying SlimServer 5.4 on a Windows XP box through Apache 1.3.x on
a Linux PC. Everything works fine, except when I try accessing the
"Server Settings" (/setup.html). I get a "403 Forbidden" message. After
turning on HTTP debugging, the SlimServer log file tells me:

2005-02-14 10:32:03.6092 Accepted connection 4 from
2005-02-14 10:32:03.6136 reading request...
2005-02-14 10:32:03.6147 HTTP request: from (HTTP::Daemon::ClientConn=GLOB(0x4e8da84)) for GET HTTP/1.1 /setup.html?page=server&player=00%3A04%3A20%3A05%3A8e%3A5c
2005-02-14 10:32:03.6165 HTTP parameter page = server
2005-02-14 10:32:03.6175 HTTP parameter player = 00:04:20:05:8e:5c
2005-02-14 10:32:03.6194 Invalid referer: [GET /setup.html?page=server&player=00%3A04%3A20%3A05%3A8e%3A5c]
2005-02-14 10:32:03.6205 generating from html/errors/403.html

Is there a way to control which referers are allowed? I currently
access SlimServer from http://localhost:9000/ on the Windows XP box, and
http://music.mvlan.net/ from other PCs on the LAN.

Jean-Sebastien Morisset, Sr. UNIX Administrator <jsmoriss (AT) mvlan (DOT) net>
Personal Home Page <http://jsmoriss.mvlan.net/>
JS & Melanie's Homebrewery <http://brewery.mvlan.net/>
Underwater and Travel Photographs <http://www.mvpix.com/>

Bruce Tucker
2005-02-14, 09:57
I've been using the PublicRadioFanBrowser plugin, which accesses the great
www.publicradiofan.com website that maintains a database of shows played on
Public Radio Stations (and Sirius and XM radio). When you activate the
plugin, it will allow you to select Music vs NonMusic, then list the shows
available to play at the current time. The website itself shows the
programs divided by genres but the plugin does not show genres for me but
rather a list of shows followed by the genre in parentheses.

While I don't program in PERL, scanning down the code I see references to
genres that seem to point only to Music vs NonMusic. Can anyone who does
code in perl take a look and tell me if this is correct? And if so, do you
see any way to add Music Genres?


Here's a list of the Music Genres on Public Radio Fan:
Blues music
Classical music
Country/bluegrass music
Eclectic music
Folk music
Gospel Music
Jazz music
Latin music
Live Music/Variety
Native/ethnic music
New Age Music
Older popular music
Pop/rock music
R and b music
World music