Created
December 3, 2016 15:18
Robots.txt that makes sure Facebook and Twitter can crawl images on your site.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disallow everything. | |
User-agent: * | |
Disallow: / | |
# Certain social media sites are whitelisted to allow crawlers to access page markup when links to /images are shared. | |
User-agent: Twitterbot | |
Allow: /images | |
User-agent: facebookexternalhit | |
Allow: /images |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@inspire22 yes, it work