RobotsTxt.blockAll constructor
RobotsTxt.blockAll({
- 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: ['/']),
],
);
}