Clickjackable
This only checks whether the X-Frame-Options header is set in the servers HTTP-Response. Simple tool to check whether a website is clickjackable.
require 'clickjackable'
require 'net/http'
// url must end with a slash /
puts clickjackable("http://www8355ue.sakura.ne.jp/")
.. true
Installation
Add this line to your application's Gemfile:
gem 'clickjackable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install clickjackable
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( http://github.com/kevincobain2000/clickjackable/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request