Rails 3 routing using referrer

Can anyone think up an example using the http referrer as a way to route
traffic in routes.rb?

This would be very useful to my site for SEO purposes.

thanks