Nope, you just need to change the conditions to match the domains you want to lock your game/app to.
Printable View
Nope, you just need to change the conditions to match the domains you want to lock your game/app to.
sorry for being a naab lol but if i would have a 3 sites example:
site1.com site2.com site3.com and I would want them to be the only sites who be able to play the game.
What condition should i change The editor is empty
Can't you guys just use a list object?
Store those sites in a list, then when the app is started, use Find String Exact on the current site, then if its less than 0, end the application. Not so difficult.
That sounds very good, but i'm a standard clicker not good with the calculator. would it be possible if you could make some sort of demo :?
I discovered the problem with my idea is that it wouldn't be able to use subdomains, so you guys can just fast loop through a list's items or a string's paragraphs.
Look at my example in the Wiki, it shows how to cut the relevant part of the url string returned by the Flash Object. This solves problems with subdomains.
I know, I understand that perfectly fine, I was just assuming that it returned the domain, not including subdomains. My bad ;)
If there was no substring chopping, you could use the FindStringExact of List. All I'm saying ;)
Hmm can't seem to get it work to use multiple sitelocks
Since everyone is talking about sitelock recently i am starting to think it might be best to just have a dedicated object for that. Maybe clickteam or a extension developer would be interested in making one.
It would be better than needing multiple objects to make them, you could have more advanced features also, or just use the other methods in combination with it.
Evilized: Just copy the following condition into the same event for each sitelock:
It's in event 3. Don't make it it's own event, just paste it into the same event :)Code:GetDomain$( "Flash® Player" ) <> "mmfgamer5.webs.com"