[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

userscript propagation

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 7
Thread images: 1

File: userscript.png (16KB, 640x480px) Image search: [Google]
userscript.png
16KB, 640x480px
Let's pretend you have a web application that supports user scripts.
As soon as you allow users access to other peoples scripts, you may want to make sure people don't abuse it. so you need either to
a) filter js so that no endless loops/function definition(and therefore endless recursions) and unwanted API calls appear
b) Have a safe language compiled to JS on the server
c) Have a safe language interpreted at the client on top of JS
d) ???

What are the options, gee?
>>
>>55511430
Bumpedidump
>>
Do your own homework you stupid faggot.
>>
>>55511430
Filter is not an idea...safe language might be difficult to implement bit you can interpret it on the fly with JavaScript itself...or you can define a "secure" api
>>
You could define permissions to access your resources, and limited quotas to use them. That way no matter what your users do, they won't exceed over the limit they have assigned to them.
>>
>>55512402
>implying this is a OR THIS BIRD STABS YOU bread
>>
>>55512408
Thanks, that is the only answer that goes even remotely in to the right direction. Now, I don't want to reinvent the wheel, so: Does something like this exist already?
Thread posts: 7
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.