A simple Whois server with a simple simple API and a front-end built with AngularJS.

okor: bd4d5e1204 remove dump лет %!s(int64=13): %!d(string=назад)
public 09466a99dc added varnish response cacheing лет %!s(int64=13): %!d(string=назад)
views 928eabf0ec added a plain css style and some error handling лет %!s(int64=13): %!d(string=назад)
.gitignore bd4d5e1204 remove dump лет %!s(int64=13): %!d(string=назад)
Gemfile c0d31fff75 updating bundle лет %!s(int64=13): %!d(string=назад)
Gemfile.lock c0d31fff75 updating bundle лет %!s(int64=13): %!d(string=назад)
README.md 530a8f7ecd simple README лет %!s(int64=13): %!d(string=назад)
config.ru 258fa8ee48 init лет %!s(int64=13): %!d(string=назад)
main.rb a76a97ae19 allow any origin лет %!s(int64=13): %!d(string=назад)

README.md

About WhoIz

WhoIz is a simple WHOIS lookup application. It's built on Sinatra and Heroku friendly.

Use It

JSON

curl http://whoiz.herokuapp.com/lookup.json?url=yahoo.com

Browser

http://whoiz.herokuapp.com
http://whoiz.herokuapp.com/lookup?url=yahoo.com

Clone It

git clone git://github.com/okor/whoiz.git

Restrict It

Edit

main.rb

Change this

before do
  response['Access-Control-Allow-Origin'] = '*'
end

To this

before do
  response['Access-Control-Allow-Origin'] = 'http://yourwebsite.com'
end

Deploy It

heroku create
git push heroku master
heroku open