Many bloggers and website owners like to greet visitors coming from specific websites with a tailored message. There are many plugins that will make this for you on WordPress, but a cool one that I came across recently is called Referrer Detector.
- 9 rules
- Del.icio.us and Delicious.com
- Google Search
- Live Search
- Yahoo Search
The plugin also comes with many customization options, including the ability to select if you want the message to be displayed before or after the posts (which is something I found problematic on related plugins).
Finally, there are many things that you could accomplish with this piece of code. For example, you could display an advertising box with AdSense just for the visitors coming via Google search, which would increase your CTR and remove the annoyance for loyal visitors at the same time.