# Protecting Your Apps against Cross Site Scripting Attacks

**URL:** <https://www.ruby-forum.com/t/protecting-your-apps-against-cross-site-scripting-attacks/53124>\
**Category:** Rails\
**Created:** [January 25, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/protecting-your-apps-against-cross-site-scripting-attacks/53124 "2006-01-25T22:48:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [January 25, 2006, 10:48pm UTC](https://www.ruby-forum.com/t/protecting-your-apps-against-cross-site-scripting-attacks/53124/1 "2006-01-25T22:48:07Z")

</div>

This has been in the news lately, so I wrote up an article about a  
method I use to protect my app against XSS attacks. It’s easy to use  
if you don’t care how it works, and I go through some of the  
metaprogramming techniques I used if you do. Check it out:

[http://blog.explorationage.com/articles/2006/01/25/how-to-protect-your-rails-apps-against-cross-site-scripting-attacks](http://blog.explorationage.com/articles/2006/01/25/how-to-protect-your-rails-apps-against-cross-site-scripting-attacks)

Justin

---

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [January 27, 2006, 2:25pm UTC](https://www.ruby-forum.com/t/protecting-your-apps-against-cross-site-scripting-attacks/53124/2 "2006-01-27T14:25:59Z")

</div>

Justin,

Thanks for posting this, it was really informative for those of us  
learning Rails and should prove very useful!

-Josh

* * *

Due to the recent increase in spam and falsely sent email, I now PGP  
Sign all of my outgoing mail to prove my identity. This means that  
you will see an attachment called “PGP.sig” with this message. This  
attachment can be used to prove that I am who I say I am. If you are  
not familiar with PGP, you can safely ignore it. For more  
information, please visit [http://www.pgp.com/](http://www.pgp.com/) or [http://www.gnupg.org/](http://www.gnupg.org/)
