Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Tanfies2 on February 09, 2015, 06:24:34 PM

Title: Is it possible to use JavaScript in posts, keep getting "Hack Attempt" error?
Post by: Tanfies2 on February 09, 2015, 06:24:34 PM
Now, I run a football website, and decided to start a couple of Child Boards that run along side my Main forum. Reason for this, is that I wanted to fill the Child Boards with all my Marketing content, rather than having it all pinned to the top of my Main Forum and clogging it up.

Rather than having just boring text links within my Child Boards, I decided to give a bit of JavaScript a go, which to a certain point worked. When 'previewing' the post, I could see my JavaScript add working perfectly, but when I went to post, I got a "Hack Attempt" error and it asked me to go back?

Any help or advice would be appreciate. 

   
Title: Re: Is it possible to use JavaScript in posts, keep getting "Hack Attempt" error?
Post by: Kindred on February 09, 2015, 08:17:23 PM
No.. You can not and should not use JavaScript in posts.
Title: Re: Is it possible to use JavaScript in posts, keep getting "Hack Attempt" error?
Post by: stormbyte on March 02, 2015, 04:14:09 PM
Javascript is the best way to create XSS Cross site scripting and CSRF ....  enabling hacker or bad guy to put script into part of the website ...

so take care, as Kindred said, no JS in posts!   ;)