Anyone Who Gets in His Way

EXCLUSIVE

Taylor Swift just got a restraining order against a guy who believes he's married to the singer and who vowed to murder anyone who stands between them -- including Secretary of State John Kerry.

Swift filed legal docs -- obtained by TMZ -- in which she claims Timothy Sweet has dogged her since January, 2011.

Sweet has sent a torrent of emails, letters, and social media posts professing his love for her.

Among the messages:

-- "If anyone in Taylor Swift's family gets killed, it is not my fault."

-- "My wife, Taylor Swift (Sweet) and I live in Beverly Hills. I am in love with her. In conclusion, we treat each other with dignity and respect. I will carry a gun to protect her the rest of my life."

-- "Dearest Taylor, I'll kill any man who gets in the way of our marriage. Message to John Kerry, Secretary of State. Message from YOUR Presidential Candidate."

Swift says she's worried for her safety and the safety of her family.