Jump to content

editor security.


aleminio

Recommended Posts

I am using an editor such as ckeditor in order to allow users on the website to submit their own guides.

I want to prevent the user from inserting scripts therefore i am using preg_replace in order to

replace words such as 'script' and 'embed' with the same words but as ascii code.

for example 'script' as 'script'

 

are there other things i should prevent the user from typing? the guides have to be approved

so i see pure html, but it's hidden scripts and stuff like that i am afraid of.

Link to comment
https://forums.phpfreaks.com/topic/236685-editor-security/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.