Improve pastebin example

Reject more malicious paths.