How to stop Skulpt / Python from Access DOM / Web Page?

222 views
Skip to first unread message

CRAIG ADAMS

unread,
Jul 30, 2014, 3:59:38 AM7/30/14
to sku...@googlegroups.com
Hi 

I being looking to use Skulpt to build a web site to get more people to code but I think of using Ads to keep site up and run with little cost. 

The problem that I have found with Skulpt it allow people to access the page / DOM that I do want to be able to access. ( Ads click).

Why this a problem is that people could write program to click on the Ads causing  the site being ban from the Ads company.  

Is there a way to stop the using Python from access DOM / Web Page (e,g. Sandbox) ?

From 

Craig Adams

Brad Miller

unread,
Jul 31, 2014, 8:05:22 AM7/31/14
to sku...@googlegroups.com

I guess you are referring to the document module? If you don’t want people to access the DOM then you could make a build of Skulpt that does not include that module.

The other way would be for someone to write a program that uses the jseval function which you could also disable in a custom build of Skulpt.

Brad


-- 
Brad Miller
Associate Professor, Computer Science
Luther College
Founder, Runestone Interactive (http://runestoneinteractive.org)

--

---
You received this message because you are subscribed to the Google Groups "Skulpt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skulpt+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

CRAIG ADAMS

unread,
Jul 31, 2014, 8:53:39 AM7/31/14
to sku...@googlegroups.com
Thank You 

Yes I was referring to the document module. 

I am happy it not in the core of Skulpt. . 

It will be really usefully, I will start looking into building Skulpt from source and remove jseval / document module. 

From 

Craig Adams 

CRAIG ADAMS

unread,
Aug 8, 2014, 4:26:13 AM8/8/14
to sku...@googlegroups.com
Hi 

I have been look though the source code and cannot found where jseval function or how to disable it. 

I may be at error thinking it is a Python function not a JavaScript function. May I ask  where it is and how would I be able to disable it. 

What you have done is really great.I think it really usefully project in get more people in to learn the basic of coding. 

Thank You. 

From 

Craig Adams

Brad Miller

unread,
Aug 8, 2014, 8:36:19 AM8/8/14
to sku...@googlegroups.com
The easiest way to disable it would be to remove it from the builtindict in src/builtindict.js

You may want to read through some of our developer documentation to get a better understanding of how skulpt works if you want to make additional changes.

Brad

-- 
Brad Miller
Sent with Airmail

CRAIG ADAMS

unread,
Aug 8, 2014, 9:04:38 AM8/8/14
to sku...@googlegroups.com
Thank you. 

I will have to go though the documentation and read more of the class as my background is more in C# .Net.

It may be good idea to have add sandbox (restricted) option.. I do not know if you think it would be good idea or not. 

Thank you for your help. 

From 

Craig Adams
Reply all
Reply to author
Forward
0 new messages