If you've set your Phishtank & Google Safe Browsing API keys (free to get via their sites), every long url which is submitted will be checked as to whether it has been reported as a suspected malware or phishing link.
If it exists on either site an error message is shown and the script does not create the short url. This check is completed for both the front-end website and any short urls created via the API.