Set the scope property exclude_path_patterns. See Arachni Security Scanner Wiki for more information.