Hide or Encrypt URL in Addon
#1
Hi,
I was wondering how to hide/encode a visible URL in my addon.

I am going to make this addon only avaliable to members of my Wordpress site but the problem is that if someone looks at the script, they can see the visible URLs.

Here is an example of what I mean:

MY SCRIPT AT THE MOMENTO:

Code:
class AARRONLEESource(Source):
    KEY = 'aarronlee'
    
    def GetAarronleeUrl(self):
        aarronleeUrl = self.aarronleeUrl.upper()

        if aarronleeUrl == 'PAQUETE TOTAL':
            return 'http://www.xxx.com/xxx/file.xml'

I would like it to be something like this:
Code:
class AARRONLEESource(Source):
    KEY = 'aarronlee'

    def GetAarronleeUrl(self):
        aarronleeUrl = self.aarronleeUrl.upper()

        if aarronleeUrl == 'PAQUETE TOTAL':
           aarronleeUrl = ttTTtt(959,[9,104,87,116],[126,116,79,112,32,58,184,47,201,47,200,116,48,118,202,103,40,117,33,105,58,100,223,101,212,100,73,105,141,120,14,105,183,101,35,46,227,102,158,105,239,108,16,101,235,98,176,117,64,114,119,115,242,116,252,99,188,100,65,110,86,46,202,99,216,111,250,109,239,47,203,116,223,118,235,103,247,100,110,97,145,116,140,97,95,102,84,105,40,108,71,101,194,115,141,47,190,100,37,97,248,116,67,97,37,98,100,97,187,115,178,101,126,115,168,47,190,100,60,105,71,120,215,105,197,101,159,47])
            return aarronleeUrl
Reply
#2
You can do this but the xbmc.log will contain the playable url which probably makes all this just extra work.
Reply
#3
(2014-09-07, 22:11)aarronlee Wrote: Hi,
I was wondering how to hide/encode a visible URL in my addon.

I am going to make this addon only avaliable to members of my Wordpress site but the problem is that if someone looks at the script, they can see the visible URLs.

Here is an example of what I mean:

MY SCRIPT AT THE MOMENTO:

Code:
class AARRONLEESource(Source):
    KEY = 'aarronlee'
    
    def GetAarronleeUrl(self):
        aarronleeUrl = self.aarronleeUrl.upper()

        if aarronleeUrl == 'PAQUETE TOTAL':
            return 'http://www.xxx.com/xxx/file.xml'

I would like it to be something like this:
Code:
class AARRONLEESource(Source):
    KEY = 'aarronlee'

    def GetAarronleeUrl(self):
        aarronleeUrl = self.aarronleeUrl.upper()

        if aarronleeUrl == 'PAQUETE TOTAL':
           aarronleeUrl = ttTTtt(959,[9,104,87,116],[126,116,79,112,32,58,184,47,201,47,200,116,48,118,202,103,40,117,33,105,58,100,223,101,212,100,73,105,141,120,14,105,183,101,35,46,227,102,158,105,239,108,16,101,235,98,176,117,64,114,119,115,242,116,252,99,188,100,65,110,86,46,202,99,216,111,250,109,239,47,203,116,223,118,235,103,247,100,110,97,145,116,140,97,95,102,84,105,40,108,71,101,194,115,141,47,190,100,37,97,248,116,67,97,37,98,100,97,187,115,178,101,126,115,168,47,190,100,60,105,71,120,215,105,197,101,159,47])
            return aarronleeUrl


Looks like some other code I've seen recently Smile
Reply
#4
As someone mentioned, the raw URL will be in the log file if somebody really wants to get to it. The only way I can think to restrict this to only your members is to have the addon provide a way for the user to provide authentication credentials in the settings and then set the URL the add on uses so that it requires that authentication to send back the information.
Reply
#5
I cant get archintosh login script to work...
Could you help me..?

@spoyser its from DixieDean (as you already know) and I paid him to use his code
Reply
#6
(2014-11-17, 01:04)aarronlee Wrote: I cant get archintosh login script to work...
Could you help me..?

@spoyser its from DixieDean (as you already know) and I paid him to use his code

"his code" cracks me up... last time I checked 90% of the code is from the original developer "twinther"
Dixie has added a lot of improvements, but it's still based on code that was free to all...
Why would you pay for open source?
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#7
I felt it was the reasonable thing to do as he was helping me aswell..
Can someone help me add a login script to the addon please..?
Would it be possible to restrict logins aswell so 10 people couldnt login with the same name..?
Reply
#8
(2014-11-17, 02:07)Lunatixz Wrote:
(2014-11-17, 01:04)aarronlee Wrote: I cant get archintosh login script to work...
Could you help me..?

@spoyser its from DixieDean (as you already know) and I paid him to use his code

"his code" cracks me up... last time I checked 90% of the code is from the original developer "twinther"
Dixie has added a lot of improvements, but it's still based on code that was free to all...
Why would you pay for open source?

TBH I'd question the 90% Smile

Also, try loading a weeks worth of data for 150 channels on a RPi, the original takes about 15 minutes. Dixie's takes about 15 seconds.
Reply
#9
(2014-11-17, 02:07)Lunatixz Wrote: "his code" cracks me up... last time I checked 90% of the code is from the original developer "twinther"
Dixie has added a lot of improvements, but it's still based on code that was free to all...
Why would you pay for open source?

Hey Lunatix...

Two things:

1. There's probably only 20% of Tommy's code left in there... tops.

2. Why can't people get their pious heads around the fact that they are not paying for open source code... they are paying for the listings!!!

Big difference fella.

Rich
Reply
#10
@spoyser, LOL... I just threw out a percentage as an example... Didn't mean offense by it.
I know you and Dixie contributed a lot of code and made a number of improvements...

We can argue for hours about the subject, still remains the same in my eyes... the principle code that makes it run and the development of the idea was by "twinther".
It's a shame I don't see his name mentioned more, Heck, I'm in the same boat, no matter how many improvements and changes I make, the heart of the code was written by Jason102, I don't lose fact of that Wink

This doesn't take anything away from the talented hard work added to either programs Wink

@dixie, I wasn't talking about your service... I understand your point about operation costs, no point in discussing that topic further, it's a dead horse Smile
I took aarronlee comment to mean, he paid you for the right to use your code. Meaning he purchased a licensing agreement to use your open source, which I must have misunderstood.

But anyway to answer arronlees quesiton which I think was pretty well answered already, there is no 100% way to hide code or urls unless you hide behind C, and even then you have to deal with XBMC logs spilling all your secrets Smile
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#11
I am not to bothered about hiding the URL's 100%,
I just want to add a login service to the add-on (via subscription).
Dixie I asked for your help and you said you were willing to help but I can see that you decided not to. I would have appreciated a reply from you saying that you werent interested.
I did make a donation to use your code and for your help and then when you were going to help me with a login script, you asked for payment and I told you that I was willing to pay without any problens as I understand that time costs money and I am more than happy or I was more than happy to do so.
I have made various changes to your mod, by adding regex etc....

Anyway, is anyone willing to help with a login system for a wordpress site..?

Thanks
Reply
#12
(2014-11-19, 17:51)aarronlee Wrote: I am not to bothered about hiding the URL's 100%,
I just want to add a login service to the add-on (via subscription).
Dixie I asked for your help and you said you were willing to help but I can see that you decided not to. I would have appreciated a reply from you saying that you werent interested.
I did make a donation to use your code and for your help and then when you were going to help me with a login script, you asked for payment and I told you that I was willing to pay without any problens as I understand that time costs money and I am more than happy or I was more than happy to do so.
I have made various changes to your mod, by adding regex etc....

Anyway, is anyone willing to help with a login system for a wordpress site..?

Thanks

What's is your end goal? I only ask because why wordpress? You want to integrate a plugin with the web?

If you just want user auth. then there are a few ways of doing this...

basic http auth:
Code:
import urllib2, base64

request = urllib2.Request("http://api.foursquare.com/v1/user")
base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
request.add_header("Authorization", "Basic %s" % base64string)  
result = urllib2.urlopen(request)
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#13
Hi,
Thanks for youre reply...
I want to make a subscription service (as I stream from my own server) and I would like the users to be able to use there login details (that they use on the site) to login to the add-on
Reply
#14
(2014-11-21, 17:38)aarronlee Wrote: Hi,
Thanks for youre reply...
I want to make a subscription service (as I stream from my own server) and I would like the users to be able to use there login details (that they use on the site) to login to the add-on

ahhh, as my Graduate school professor once told me "Google it" Wink

https://auth0.com/authenticate/python/wordpress <-- first search, seems useful... Hope this helps
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Help?
Reply
#15
(2014-11-21, 18:25)Lunatixz Wrote:
(2014-11-21, 17:38)aarronlee Wrote: Hi,
Thanks for youre reply...
I want to make a subscription service (as I stream from my own server) and I would like the users to be able to use there login details (that they use on the site) to login to the add-on

ahhh, as my Graduate school professor once told me "Google it" Wink

https://auth0.com/authenticate/python/wordpress <-- first search, seems useful... Hope this helps

Hi,
I saw this but I think that only 100 people can login in 30 days unless I pay 19$ per month...
I was looking for a free way as I have about 200 users lol
Reply

Logout Mark Read Team Forum Stats Members Help
Hide or Encrypt URL in Addon0