# ImportableUrlValidator## This validator blocks projects from using dangerous import_urls to help# protect against Server-side Request Forgery (SSRF).classImportableUrlValidator<ActiveModel::EachValidatordefvalidate_each(record,attribute,value)ifGitlab::UrlBlocker.blocked_url?(value)record.errors.add(attribute,"imports are not allowed from that URL")endendend