How to disable external login page

General discussions.

Moderator: moderators

How to disable external login page

Postby matka » Tue Dec 13, 2011 3:00 pm

I'm running Subsonic for a while and my client is an Android device.
I have setup a new router lately and forwarded the 4040 port. My client can connect to the server and plays my content.
However, I just noticed that I can also http login to the server remotely via the forwarded port.
For security purposes, I would like to disable the remote access to the login page, but still retain the ability to stream content.
I have looked for a separate "streaming" port but did not find anything.
Can I disable remote http access and still stream music ?

Thanks; George
matka
 
Posts: 9
Joined: Tue Jan 25, 2011 7:19 pm

Re: How to disable external login page

Postby BKKKPewsey » Tue Dec 13, 2011 5:46 pm

If you rename your login.jsp file to say login.jsp.old that will prevent the login page from being displayed.
(You get a 404 error)
However you can still log on by bypassing the login page by passing your user name and password directly as parameters
eg
Code: Select all
yourname.subsonic.org/login.view?user=yourname&password=yourpassword


This may go way to what you are trying to achieve.
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: How to disable external login page

Postby matka » Tue Dec 13, 2011 6:18 pm

Thanks for the tip, I will try asap.

One more question so I understand how this works.

Does the forwarded port serves both http requests and streams media as well ? Is there a way to separate the two ?
Also, when client receives data about folders, files, etc..., is this done via http requests ?
matka
 
Posts: 9
Joined: Tue Jan 25, 2011 7:19 pm


Return to General

Who is online

Users browsing this forum: No registered users and 5 guests