block majestic ahrefs from crawling my site

hi guys,

is there a service which can block majestic and crawlers from blocking my site?

how can i get this done.