When there is ram persent on claim (village or personal) - no teleportation is allowed for people on that claim. This includes prevention of bashing own hf and randomspawn as well as Adventure->Travel of any form.
ADD:
Also, rams should have two states, "activated" and "not activated". Not activated ram can still be used to break things, but does not produce teleportation blocking effect, while activated does. Activating a ram should cost some amount of LP (like 100k). This is to prevent griefing by ram spamming.