Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_httpcontrol (Read 937896 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.


foo_httpcontrol

Reply #527
hello,
thank you for this great plugin. i have some security related questions to this plugin.

which webserver is used?
i was able to browse all my files. this is a big security hole for me. is it possible to restrict to webserver only to the foobar folder?
mac adress filter and password is no solution as you can change macs and i don't trust my mobile device (iphone)

thanks

foo_httpcontrol

Reply #528
which webserver is used?
i was able to browse all my files. this is a big security hole for me. is it possible to restrict to webserver only to the foobar folder?
mac adress filter and password is no solution as you can change macs and i don't trust my mobile device (iphone)

File/Preferences/Tools/HTTP Control/Browse path restricts browsing to a certain place or a several places separated by |.
Hide non-playable files in browser option also helps to preserve security.

foo_httpcontrol

Reply #529
lxofith.... are you back from vacation?  I hope it was fantastic.

I dont intend to badger you, but curious if you've had any chance to consider the iTunes Remote/Contacts  style library.

thanks again for the work!
-patrick

foo_httpcontrol

Reply #530
lxofith.... are you back from vacation?  I hope it was fantastic.

I dont intend to badger you, but curious if you've had any chance to consider the iTunes Remote/Contacts  style library.

thanks again for the work!
-patrick

Hello Patick,

Yes the vacation was nice, thanks.
Unfortunately I haven't had time to work on the template yet. I know it's been quite a while, hopefully I can find some time in the near future. I will keep you posted of course.

Cheers,
Lx_

foo_httpcontrol

Reply #531
thx my friend!

foo_httpcontrol

Reply #532
foo_httpcontrol 0.95.4 up just now

oblikoamorale: Not sure how easy it would be to implement, that probably depends on how you structured your code, but wouldn't it be a cool idea if you could define multiple servers each with it's own template?
Nevermind!

ajquery 0.2 seems REALLY nice. I'm trying to get it to work right now, but all I get is:

Quote
An AJAX error occured.

Possible reasons:

JSON parser got stuck on erroneous data;
borken connection;
god knows what else.
Restart template or think of something else.
I get this message on Google Chrome 4.203.2

I wonder if it's because my connection to my server for some reasons are damn slow right now.
Can't wait for a HD-AAC encoder :P


foo_httpcontrol

Reply #534
cool component, really!

I also got the AJAX error for ajquery, running on firefox 3.0.13 from the same computer where Foobar is installed (had worked for many times in the beginning).

And I got problems to access foobar from any other PC within the network, although firewall settings (windows firewall) are to allow access from remote computers for foobar.exe 

anybody an idea?

btw there´s a typo in the ajquery readme: it should be 'Extract archive contents to %APPADATA%\foobar2000\foo_httpcontrol_data\ajquery\' instead of 'APPADATA%\foobar2000\foo_httpcontrol\ajquery\'


foo_httpcontrol

Reply #536
I know I'm going to sound stupid.
I'm usually pretty technologically savvy (i've been an IT professional for a couple of years now) but for the life of me I cannot figure out how to access httpcontrol from any device other than my PC which is running it. The readme contains no information beyond how to install this plugin. Someone who knows what they're doing should go through and make a comprehensive walkthrough on how to configure it
Sorry if I sound like an idiot, I'm sure it's something really stupid that I'm missing here.

foo_httpcontrol

Reply #537
Dr. Preston.

Firstly, the device you want to use to connect to Foobar must be on the same Wifi network.

Then simply point the devices browser to the same address you are using on your local computer.

http://youripadress:8888/index.html

of course the above will be different if you are not using one of the html templates, or if you have changed the port in Foobar settings to something other than 8888.

foo_httpcontrol

Reply #538
regarding error, post http://yourip:yourport/ajquery/?param3=js/state.json here, to pastebin, or anywhere else. it's the only way to find out what's wrong.

from the PC where foobar is installed I get this:

Code: [Select]
{"playlist": [ {"a":"120 Days","b":"120 Days (CD1)","n":"01","t":"Come Out (Come Down, Fade Out, Be Gone)","l":"8:51","d":"2006"}, {"a":"120 Days","b":"120 Days (CD1)","n":"02","t":"Be
 Mine","l":"4:15","d":"2006"}, {"a":"120 Days","b":"120 Days (CD1)","n":"03","t":"C-Musik","l":"7:22","d":"2006"}, {"a":"120 Days","b":"120 Days (CD1)","n":"04","t":"Sleepwalking","l":"3:28","d":"2006"},
 {"a":"120 Days","b":"120 Days (CD1)","n":"05","t":"Get Away","l":"4:41","d":"2006"}, {"a":"120 Days","b":"120 Days (CD1)","n":"06","t":"Keep on Smiling","l":"5:30","d":"2006"}, {"a":"120 Days","b":"120
 Days (CD1)","n":"07","t":"Lazy Eyes","l":"4:40","d":"2006"}, {"a":"120 Days","b":"120 Days (CD1)","n":"08","t":"Sleepless Nights #3","l":"3:04","d":"2006"}, {"a":"120 Days","b":"120 Days
 (CD1)","n":"09","t":"I've Lost My Vision (Kraut nr1)","l":"11:26","d":"2006"}, {"a":"120 days","b":"120 days (CD2)","n":"01","t":"Sleepwalking 120 days Remix","l":"8:00","d":"2006"}, {"a":"120 days","b":"120
 days (CD2)","n":"02","t":"Come Out, Come Down, Fade Out, Be Gone (T.A.Kaukolampi remix)","l":"9:33","d":"2006"}, {"a":"120 days","b":"120 days (CD2)","n":"03","t":"Come Out, Come Down, Fade Out, Be
 Gone (Reconstructed by Secret Machines)","l":"6:07","d":"2006"}, {"a":"120 days","b":"120 days (CD2)","n":"04","t":"Come Out, Come Down, Fade Out, Be Gone (Mental Overdrive
 remix)","l":"9:14","d":"2006"}, {"a":"?","b":"?","n":"?","t":"psychosphere_-_overlight","l":"5:11","d":"2008"}, {"a":"?","b":"?","n":"?","t":"02 Radioactivity","l":"5:21","d":"?"}, {"a":"?","b":"?","n":"?","t":"atma
 alpha","l":"7:19","d":"?"}, {"a":"?","b":"?","n":"?","t":"001_Rafael_Peligro-Enchanter","l":"6:54","d":"?"}, {"a":"?","b":"?","n":"?","t":"Mankind","l":"6:46","d":"?"}, {"a":"?","b":"?","n":"?","t":"002_Rafael_Peligro-
Precious_Psychosis","l":"6:48","d":"?"}, {"a":"?","b":"?","n":"?","t":"003_Rafael_Peligro-Cargo","l":"5:09","d":"?"}, {"a":"?","b":"?","n":"?","t":"freedom fighter 128","l":"7:55","d":"?"},
 {"a":"?","b":"?","n":"?","t":"frantic MoM","l":"6:51","d":"?"}, {"a":"?","b":"?","n":"?","t":"005_Rafael_Peligro-Lifecoach","l":"7:37","d":"?"}, {"a":"?","b":"?","n":"?","t":"006_Rafael_Peligro-
Fragile_People","l":"7:49","d":"?"}, {"a":"?","b":"?","n":"?","t":"007_Rafael_Peligro-Radiotauglich","l":"6:34","d":"?"}, {"a":"?","b":"?","n":"?","t":"008_Rafael_Peligro-Rollin_high","l":"5:51","d":"?"},
 {"a":"?","b":"?","n":"?","t":"009_Rafael_Peligro-Crosshatch","l":"6:17","d":"?"}, {"a":"?","b":"?","n":"?","t":"010_Rafael_Peligro-Storytelling","l":"6:53","d":"?"}, {"a":"?","b":"?","n":"?","t":"011_Rafael_Peligro-
In_a_special_way","l":"6:18","d":"?"}, {"a":"?","b":"?","n":"?","t":"012_Rafael_Peligro-Gorgeous_Life","l":"6:20","d":"?"}, ], "playlists": [ { "name": "Default", "count": "1" }, { "name": "LIBRARY", "count": "6016"
 }, { "name": "STATIONS", "count": "18" }, { "name": "FAVS", "count": "309" }, { "name": "Audio CD", "count": "5" }, { "name": "AUDIO BOOKS", "count": "6016" }, { "name": "STREAMRIPS", "count": "32" },
 { "name": "Matt", "count": "583" } ], "playbackOrder" : '4', "volume": "99", "SAC": "", "SAQ": "", "isPlaying": "0", "isPaused": "1", "isEnqueueing": "0", "playingItem": "1381", "focusedItem": "1381",
 "prevplayedItem": "4018", "itemPlayingPos": "23", "itemPlayingLen": "259", "playlistPage" : "1", "playlistItemsPerPage": "30", "playlistItemsCount": "6016", "playlistActive" : "1", "playlistPlaying" : "1",
 "playlistPlayingItemsCount": "6016", "playlistTotalTime" : "2wk 5d 5:28:40", "queueTotalTime" : "", "helper1": "Little 15 - ", "helper2": "Depeche Mode - Little 15", "helper3": "MP3 | 174kbps | 44100Hz | stereo",
 "albumArt": "/albumart_28860.jpg"}

which I think is ok (I got some AJAX errors before making this, but not afterwards).

Nevertheless I still can´t access from any other PC in the network. error (translated) 'firefox can´t get connection to server 127.0.0.1:8888'

edit: added line breaks to the codebox


foo_httpcontrol

Reply #540
hi
great thanks oblikoamorale for this  plugin, very usefull especially for lazy people like me 

but I have the same issue with ajquery who occurs at startup or after a long period not connected

when i type "http://myip:myport/ajquery/?param3=js/state.json" I get the same result than vogliadicane and it work again

what can i do for helping ?

thanks

foo_httpcontrol

Reply #541
Nevertheless I still can´t access from any other PC in the network. error (translated) 'firefox can´t get connection to server 127.0.0.1:8888'


This can't work, right? If you are not accessing foobar2000 running on the local machine, you'll need to use the proper network IP address of the machine that is actually running foobar2000. 127.0.0.1 is 'localhost', the address of the local machine. You should have an IP address like 10.0.0.xxx or 192.168.1.xxx, which are typically used for networks.

foo_httpcontrol

Reply #542
I've added outputting of some available debug info for ajquery template, anyone willing to investigate the problems (sadly, I don't have any) are welcome.

foo_httpcontrol

Reply #543
hi
error occurs then i try to refresh page (F5)  I must close page and open again severals times to make it work again  I can't remove first item of a playlist too
I don't know how to do for debugging I'm using firefox 3.5.2
thanks
 

foo_httpcontrol

Reply #544
I've added outputting of some available debug info for ajquery template, anyone willing to investigate the problems (sadly, I don't have any) are welcome.

do you mean the 'log access to console'? If yes, I get this when the error occurs:

Code: [Select]
foo_httpcontrol: [ 03.09 18:56:45 ] 127.0.0.1 	/default/&p3=js/state.json  	Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13 (.NET CLR 3.5.30729)
foo_httpcontrol: [ 03.09 18:58:00 ] 127.0.0.1 /default/&p3=js/state.json  Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13 (.NET CLR 3.5.30729)
foo_httpcontrol: [ 03.09 18:58:25 ] 127.0.0.1 /default/&p3=js/state.json  Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13 (.NET CLR 3.5.30729)

but I guess you meant something else...

some questions:

What remote I.P. should I take when the network router makes dynamic adresses?

Is there a way to disable file browsing completely or some plans to add this option in future versions?

 


 

foo_httpcontrol

Reply #545
I've looked into this issue. the root of the problem with ajquery template on firefox 3.5.2 is that load order of three javascript files linked in index.html somehow is random. once per a few page refreshes scripts load in correct order and page renders correctly. apparently it has something to do with http server part of the component, but I have no idea what at the moment.
again, opera 10/chrome 4 has nothing even remotely similar to this problem.

edit: disabling network.http.keep-alive in firefox preferences fixes this bug.

Quote
What remote I.P. should I take when the network router makes dynamic adresses?

put 0.0.0.0 to "bind to" preferences field, restart component server.

Quote
Is there a way to disable file browsing completely or some plans to add this option in future versions?

make your personal build of the component with removed browser.

foo_httpcontrol

Reply #546
hi
Thank you oblikoamorale for your quick and detailed answer especially when it is more a bug of mozilla than your component.

I can't remove the first item of a playlist, but maybe it's done on purpose.

Whatever, your component is one of the most useful ever written for foobar.

thanks a lot

foo_httpcontrol

Reply #547
nope, it's not firefox bug, it's just that I can't handle keep-alive connections.
update component and template to latest versions, issues with keep-alive and inability to remove first item are solved there.

foo_httpcontrol

Reply #548
make your personal build of the component with removed browser.


hehe, great idea, just don´t know how.

well, nevermind, it was just an idea, the component is great as it is now and the new version together with ajquery runs without errors for me now (on firefox).

thank you.

foo_httpcontrol

Reply #549
hi
ajquery 0.4+foo_httpcontrol 0.95.5  works fine with firefox 3.5.2
thanks