Require code to stop SE registering website links

Hi,

A long time ago I remember putting some code on a website (in a txt file I think) which stopped the search engines from spidering the web pages I didn’t want showing online. I’ve forgotten how this should look. Please help.