View Single Post
Old 01-03-2013, 03:57 AM   #1 (permalink)
Jack Hard
The Wanderer
 
Jack Hard's Avatar
 
Join Date: Dec 2012
Posts: 11
Thanks: 0
Jack Hard is on a distinguished road
Default 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 ?
Jack Hard is offline  
Reply With Quote