Re: Sitelock (get object)
Ah ok so it's actually a string comparison rather than length, that would be fine then as long as they did not do the duplicate domain workaround thing like Jamie says.
I guess to take it a step further you could have text on the website page and then get and compare that also. I doubt anyone wanting to take the SWF would duplicate the whole website page but i haven't researched this much.
Anyway this is good to know, thanks everyone :)
Re: Sitelock (get object)
Ouch, that's true! We probably need an additional event first, to check for special characters which mark the end of the domain. Would it be sufficient to look for the second dot from the right side of the url to solve this?
Re: Sitelock (get object)
Check if it's either equal to "xyz.com" or if the right is ".xyz.com" - that should work.
Re: Sitelock (get object)
> Check if it's either equal to "xyz.com"
I should add "in whole". Because in part should only be ".xyz.com"
Re: Sitelock (get object)
If we only check for the ending ".xyz.com", is there any possible url format which could still cause trouble or do we only need to enhance the check by the leading dot?
Re: Sitelock (get object)
You need to check for the entire domain being "xyz.com" too, since if the domain is just "xyz.com", the (Right$(...) = ".xyz.com") will be false.
But yes, that's all you need to check.