01-03-2013, 03:57 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Dec 2012
Posts: 10
Thanks: 0
|
Check if javascript source is using prohibited functions
I want to run user provided javascript on site, but before doing so, I need to (algorithmically) check if provided javascript source follows set of rules (e.g.not using eval() function, not using setTimeout()/setInterval() functions, etc.).
Nice thing in addition would be to check if source is valid. Tool for this could be anything, since executed server-side. Do you have any ideas what may be useful for this ?
|
|
|
|