Are you sure that you want to show a different content to search engines then to normal visitors? This contradicts to what the search engines are interested in, and I'd suspect that the more sophisticated ones check the indexed sites from time to time by visiting them from a non-published IP with a standard user-agent header to make sure they get the same or at least not totally differing content this way as they do when visiting the sites "officially".