Quote:
Originally Posted by mgraphic
If you mean by "add widgets" by letting other users to upload php code to run on execution, then you are playing with fire and there really is no safe way of preventing any mis-usage.
The only way I would allow personally is to have a bank of pre written widgets and allow uses to pick and choose to which they would perfer to install. Kinda like Facebook apps.
|
Thanks for the quick reply!
I've gotten this answer before and it kinda misses the point. Widgets are by definition code that that users can upload (or put on their site) to run on execution. Not necessarily PHP. It could be Javascript, Flash, whatever.
And yes, I kinda understand the risks, that's why I asked. The fact is, sites do allow widgets. You mentioned Facebook. There are many others. My question is how can I do what they do?
Are there ways to isolate uploaded code? Or to block bad code? It should be possible to check the code and allow only certain types of widgets. If other sites can do it, why can't I?
It's apparently OK for the kids to create widgets and put them on their blogs and profile pages, but we have to leave hosting widgets to the grownups?
Last edited by modifiedcontent; 02-29-2008 at 07:40 PM..
|