Code Monkey home page Code Monkey logo

urlshortener's Introduction

Build Status

UrlShortener

URL Shortener - Pure Java SE Web Application with embedded Jetty 9 Http server.

Use java -server -jar UrlShortener.jar to run.

Try it on-line at http://go2.pt/ or download the latest version jar.

Features

  • Single Jar Application;
  • No Application server, Servelet Container or External Database dependencies;
  • Refuses abusive Phishing and Malware Urls;
  • Actively scans short Urls to identify possible threats;
  • Apache style logging for compatibility with existing tools;
  • Integration with Google Webmaster tools, Safebrowsing API and PhishTank API;
  • Configurable status redirects;
  • Light footprint, can run on very constrained systems.

Get the latest version

The stable version used in production at http://go2.pt is v0.1.0.

Server configuration

Field Default value Meaning
server.port 80 Port the server will be listening at.
server.ip 0.0.0.0 Your server IP.
server.accessLog access_log Access log filename.
server.version Version of the server software being run.
server.redirect 301 HTTP response code for Shortened Urls. Valid values are either 301 or 302.
server.cache 24 Amount of time (in hours) static pages should be cached.
server.domain Domain name where site is hosted.
database.folder Where to place Url Database files.
google-site-verification Key used by Google Webmaster tools to confirm site ownership.
safe-lookup-api-key API key to integrate with Google safe browsing lookup API.
phishtank-api-key API key to integrate with Phishtank API.
watchdog.wait 5 Time in seconds Url Watchdog is called after application starts.
watchdog.interval 16 Time in minute Url Watchdog sleeps.

Dependencies

Apache Commons Validator 1.4.0 - http://commons.apache.org/proper/commons-validator/

Log4j2 - http://logging.apache.org/log4j/2.x/

Jetty 9 - http://www.eclipse.org/jetty/

License

GNU Affero General Public License.

urlshortener's People

Contributors

vilaca avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.