I've heard of this done with owls so it makes sense that it could also work for hawks. The idea is that the rope cross-sections are not large enough to accommodate the wing span of the bird and thus they stay away.
Instead of using twine, I would use highly visible nylon rope for added security.