authenticate referrer, facebook etc.

merged back some extra options
OMG, you are a legend! Thank you @jadwigo