This is a really poor implementation of link protection, are you sure this is really how you want this script to function?