implemented policies and LevenshteinDistance for similar host domains