Improved prohibited protocols check in links