Content Security Policy, Your Future Best Friend
![Thumbnail for 15706 Thumbnail for 15706](https://www.cunninghamwebsolutions.com/wp-content/uploads/2016/09/15706-thumb-80x7.gif)
![](https://statisches.auslieferung.commindo-media-ressourcen.de/advertisement.gif)
A long time ago, my personal website was attacked. I do not know how it happened, but it happened. Fortunately, the damage from the attack was quite minor: A piece of JavaScript was inserted at the bottom of some pages. I updated the FTP and other credentials, cleaned up some files, and that was that.
One point made me mad: At the time, there was no simple solution that could have informed me there was a problem and — more importantly — that could have protected the website’s visitors from this annoying piece of code.
The post Content Security Policy, Your Future Best Friend appeared first on Smashing Magazine.
From our sponsors: Content Security Policy, Your Future Best Friend