If you do not want your images appearing in Google Image Search (to prevent theft, hotlinking, or bandwidth drain), you can block image crawlers specifically using robots.txt rules.
Photographers, artists, and stock photo sites may want to prevent free image access via Google Images while keeping their web pages indexed normally.
Try It Now β Free, No Sign-up
Open the tool and get started instantly. No sign-up, no installation needed.
Open Robots.txt Generator Now100% browser-based β’ No upload to server β’ No sign-up required
How to Block Image Crawling in Robots.txt
- Add User-agent: Googlebot-Image
- Set Disallow: / (blocks all images from Google Image Search)
- Or Disallow specific folders: /gallery/, /portfolio/
- Keep regular Googlebot allowed (web pages still indexed)
- Generate and upload
Pro Tips
- Googlebot-Image is separate from Googlebot β blocking it only affects Image Search
- Your images will still appear on your web pages β just not in Google Images tab
- For selective blocking, disallow only specific image directories
- Alternative: use X-Robots-Tag: noindex HTTP header on image files
Frequently Asked Questions
Related Tools & Guides
Ready to Use Robots.txt Generator?
Free, instant, and 100% private. No sign-up needed.
Open Robots.txt Generator