Cut you link into a short link, develop in php with Codeigniter like Framework