mazehh
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017
09:49 AM
protect roku private channel by device serial number
dear,
i have roku private channel and i need allow access to this roku only for device id list.
have a solution for this?
thanks
i have roku private channel and i need allow access to this roku only for device id list.
have a solution for this?
thanks
7 REPLIES 7
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017
09:53 AM
Re: protect roku private channel by device serial number
It should be pretty easy to code that! Although Roku frowns on using device serial number (vs uniquely generated token) as an identifier, it's a private channel you can do what you want.
aspiring
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2017
10:27 AM
Re: protect roku private channel by device serial number
blessed_ids = "1GH329099999,2XH329099999,7UH329099999,..."
this_id = createObject("roDeviceInfo").getDeviceUniqueId()
if blessed_ids.inStr(this_id) >= 0 then ...
mazehh
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2017
03:38 PM
Re: protect roku private channel by device serial number
"EnTerr" wrote:
blessed_ids = "1GH329099999,2XH329099999,7UH329099999,..."
this_id = createObject("roDeviceInfo").getDeviceUniqueId()
if blessed_ids.inStr(this_id) >= 0 then ...
mazehh
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2017
03:40 PM
Re: protect roku private channel by device serial number
where i can write this serial number in witch file in my roku channel?
mazehh
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2017
05:17 AM
Re: protect roku private channel by device serial number
i need to block access to my roku channel by serial number. if the serial is in my source file channel the channel work.
but i need to know in wicht file i can make this in my source file.
thanks
but i need to know in wicht file i can make this in my source file.
thanks
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2017
12:27 PM
Re: protect roku private channel by device serial number
"mazehh" wrote:
i need to block access to my roku channel by serial number. if the serial is in my source file channel the channel work.
but i need to know in wicht file i can make this in my source file.
thanks
I assumed you already know how write code for Roku, that does not seem to be the case. Ok, so put the above snippet in the beginning of your main() function, change the 3rd line slightly
if blessed_ids.inStr(this_id) < 0 then STOP
and that should do it, as a quick&dirty hack. I highly recommend you learn more about programming though.
mazehh
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2017
02:53 PM
Re: protect roku private channel by device serial number
Thank you it's ok.
do you have a solution for roku channel work with xtream code panel?
or do you have a solution if i have a file with roku serial number allowed in external website , the channel check if the id is in the list open the channel if not block the channel?
thanks
do you have a solution for roku channel work with xtream code panel?
or do you have a solution if i have a file with roku serial number allowed in external website , the channel check if the id is in the list open the channel if not block the channel?
thanks