Complete function with referer fallback and ajax returns. User cannot unactivate itself