Shad Posted November 8, 2006 Share Posted November 8, 2006 Hey,I was wondering how i would go about stopping script access in flash scripts. E.g. if i was to allow my guest book to be html enabled and someone was to embed a flash file which can set/change cookies. How would i disable these functions?Hope you can help! Quote Link to comment Share on other sites More sharing options...
php_joe Posted November 8, 2006 Share Posted November 8, 2006 use [b]str_replace()[/b] to prevent them from using the <embed tag:[code]$comment = str_replace("<embed", "<!--", $comment);[/code]Joe Quote Link to comment Share on other sites More sharing options...
Shad Posted November 8, 2006 Author Share Posted November 8, 2006 no, i want guests to be able to embed flash files, however i want to disable script access from these files. I think myspace has done something like this. Quote Link to comment Share on other sites More sharing options...
php_joe Posted November 9, 2006 Share Posted November 9, 2006 If you embed a file you're taking that file from another location. It's like hot-linking to a jpg. To my knowlage you have no control over what's inside of that file unless it's your file.Joe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.