Code: Select all
<vlc id="if" param1="file.name value '/library/' 9 strncmp 0 =" />
...
<vlc id="end" />
Code: Select all
<element type="directory" size="" date="" path="/library/" name="Media Root" extension="" />
Code: Select all
<vlc id="end" />
<root>
<vlc id="if" param1="url_param 1 =" />
<vlc id="rpn" param1="'dir' url_extract" />
<element type="directory" size="" date="" path="/library/" name="Media Root" extension="" />
<vlc id="foreach" param1="file" param2="directory" />
<vlc id="if" param1="file.name value '/library/' 9 strncmp 0 =" />
<vlc id="if" param1="file.basename value '.' 1 strncmp 0 != file.basename value '..' 2 strncmp 0 = |" />
<element type="<vlc id="value" param1="file.type" />" size="<vlc id="value" param1="file.size" />" date="<vlc id="value" param1="file.date" />" path="<vlc id="value" param1="file.name value xml_encode" />" name="<vlc id="value" param1="file.basename value xml_encode" />" extension="<vlc id="value" param1="file.ext value xml_encode" />" />
<vlc id="end" />
<vlc id="end" />
<vlc id="end" />
<vlc id="end" />
</root>
Code: Select all
<vlc id="if" param1="file.name value '/library/' 9 strncmp 0 =" />
Code: Select all
<vlc id="if" param1="file.name value 'Q:\\' 3 strncmp 0 =" />
In other words, the only thing "my" workaround does is prevent people from viewing the directory structure of your server. It will not prevent people, who already know the location of media files, from playing them.The workaround proposed by Lafcadio is not at all secure !
Yes, I think an encrypted VPN connection is the most secure way at the moment, to access a VLC Web Interface.
In other words, the only thing "my" workaround does is prevent people from viewing the directory structure of your server. It will not prevent people, who already know the location of media files, from playing them.
In order to achieve a secure server, the most common suggestion I've seen is to use a VPN (Virtual Private Network). This will:In this case you need to reset your VLC's .hosts file to restrict traffic only to local connections.
- Require a password to connect
- Encrypt your traffic
- Limit port forwarding requirements on your router
Code: Select all
if string.find(_GET["uri"], "/path/to/your/media/") == nil then
_GET["uri"] = "file:///path/to/your/media/"
end
--You should probably do the same here:
if string.find(_GET["dir"], "/path/to/your/media/") == nil then
_GET["dir"] = "/path/to/your/media/"
end
local browseTable=httprequests.getbrowsetable()
Return to “General VLC media player Troubleshooting”
Users browsing this forum: No registered users and 16 guests