I want to put Google ads in the right sidebar. But when I put script tags in the new block that I created. It looks like it strips out all the script tags. And when I put php, it simply display the php code without executing it.

I understand that to enable the acceptance of script and php tags, I might have to modify drupal code, but where to start?