Block all BOTs except few

Could you please help me blocking all BOTs except the ones i want.
I tried the following but my whole website was blocked
(http.request.uri.path eq “/robots.txt” and http.user_agent ne “Googlebot”) or (http.user_agent ne “Bingbot”) or (http.user_agent ne “AdsBot-Google”) or (http.user_agent ne “facebookexternalhit”)

A post was merged into an existing topic: Block robot identified by bot*