implement referrer check logic
impliment SearchContext model