Virus in text that restarted my iPhone 5s?

I just got a text from a friend and it was a link that said "lol look" with a link I clicked on the link and my phone completely restarted. I'm worried it was a virus. Can anyone help?
Nancy

I wouldn't worry about it, its hard to get an actual virus running on an iphone, websites can cause problems but they can't install on an iphone the way computers do when hitting bad websites.