Put domain/path check before writing setting