RobotsTxt.blockAll constructor

RobotsTxt.blockAll({
  1. required String baseUrl,
})

Create a robots.txt that blocks everything

Implementation

factory RobotsTxt.blockAll({required String baseUrl}) {
  return RobotsTxt(
    baseUrl: baseUrl,
    rules: const [
      RobotsRule(userAgent: '*', disallow: ['/']),
    ],
  );
}