User-agent: Scrapy Allow: / User-agent: * Disallow: /pdfs/ # Block the /pdfs/directory. Disallow: *.pdf Disallow: *.pdf$