Is it possible to have a script for a particular page which basically prevents any cookie access?

Code:
//Have Javascript Block cookie access

//Then document.cookie cannot be read or written upon
The reason why I am asking is because I am allowing for users to basically put their own html and javascript code into their profile page and I just don't want them to be allowed to edit cookies of visitors.

I could obviously have a server side script which filters out any javascript code that contians document.cookie within it, but if there is a remove <script> tag within the provided code then the it would get really complicated to have to download remote js files and filter them out. Also if they're remote then they will be on a remote host, thus they cannot be editted and I do not want to have to store js files on my server.

So is there any way to get around this?