Mobile app version of vmapp.org
Login or Join
Lee4591628

: Image Hot-links & Google's Instant Previews I'm trying to adjust my site: 1. stop Image Hot-links 2. block Googlebot-Image (because I do not want my images to be searchable) 3. allow Google's Instant

@Lee4591628

Posted in: #Apache #GoogleSearch #Htaccess #RobotsTxt #SearchEngines

I'm trying to adjust my site:
1. stop Image Hot-links
2. block Googlebot-Image (because I do not want my images to be searchable)
3. allow Google's Instant Previews

I've tried this but the Instant Previews still do not show my images. (I really do not want to start blocking/allowing by user-agent.) Has anybody achieved it ?

.htaccess


RewriteCond %{REQUEST_URI} !(favicon.ico)
RewriteCond %{HTTP_REFERER} !(mydomain.com|google.)
RewriteRule .(jpe?g|gif|png)$ - [F]


robots.txt


User-agent: Googlebot-Image
Disallow: /

User-agent: *
Disallow: /phpcart/

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Lee4591628

2 Comments

Sorted by latest first Latest Oldest Best

 

@Courtney195

If Google Instant Previews is not working for your website, you can test it at Google's Webmaster Tools website. Basically, your website must allow access to Googlebot and Instant Previews's user-agents.

10% popularity Vote Up Vote Down


 

@Angie530

From the Instant Previews FAQ, it looks like you need to change your method of blocking image search indexing:


In order for images to be embedded in previews, it is important that they are not disallowed by your robots.txt file. In order to block crawlable images from being indexed, you can use the "noindex" x-robots-tag HTTP header element.


...and here's a blog post with a couple ways to implement that.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme