That should work, just two comments please: a) technically it wouldnt “unblock” Google but everyone who claims to be Google (though, that would be rather a crawler issue than a hotlinking one) and b) I wouldnt expect Google to send a referrer (particularly a third party one) anyhow. Are there occasions when it sends one?