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! Link to comment https://forums.phpfreaks.com/topic/26583-php-flash/ 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 Link to comment https://forums.phpfreaks.com/topic/26583-php-flash/#findComment-121698 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. Link to comment https://forums.phpfreaks.com/topic/26583-php-flash/#findComment-121866 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 Link to comment https://forums.phpfreaks.com/topic/26583-php-flash/#findComment-121936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.