Creates short URLs for long links. Single page web application with embedded jetty server.
Java JavaScript HTML CSS
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.settings Set all files as Utf-8 on eclipse May 11, 2016
lib #9 Oct 29, 2014
.gitignore switch to jetty in progress Oct 11, 2014
.project ADD: eclipse project, resource files, configuration files, dependenci… Jul 21, 2013
.travis.yml coverage test May 11, 2016
LICENSE FIX: AGPL license Jul 21, 2013 fixed build fail/ok alert for this branch May 11, 2016
build.xml correct main class Nov 20, 2014

Build Status


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 or download the latest version jar.


  • 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 is v0.1.0.

Server configuration

Field Default value Meaning
server.port 80 Port the server will be listening at.
server.ip 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.


Apache Commons Validator 1.4.0 -

Log4j2 -

Jetty 9 -


GNU Affero General Public License.