RevMedia Question: Securing the revlet?

Malte Pfaff-Brill revolution at derbrill.de
Fri Oct 30 10:38:59 EDT 2009


Hi David,

this script executes a bit of javascript in the browser. The result  
will then contain the URL your revLet has been launched from and you  
can react accordingly. so you might want to do this on openstack for  
example

on openStack
local tURL
do "document.location.href;" in browser
put the result into tURL
if tURL <> "path/you/would/expect.html" then
answer "You are using my revlet from an unknown location. Please use  
it from my site instead"
-- do a redirect here if you wish or quit
end if
end openStack

Hope that sheds some light.

All the best,

Malte



More information about the use-livecode mailing list