• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Hotlinking protection without affecting SEO in Google Image

cuppy

Chevereto Member
Hello, I want to ask something, if we enable hotlinking protection, it will affecting the SEO in Google Image Search right?

I asked my friend and he said if we enable hotlinking protection, people can't see the image in Google Image Search. So got other way to prevent people hotlinking picture without affecting the SEO?

Okay this is my site : http://www.maklumat.my

And this is where the image in the site will be hosted : http://image.maklumat.my

Sorry for the bad English.
 
do hotlink protection excluding google bot referal.
 
You need to input a rewrite rule where you tell that the google ip is safe and not considered as hotlink.
 
Rodolfo said:

I am trying to do this about 1 day already, and I searched all about htaccess hotlink in Google, trying it 1 by 1, but none of them worked for me. I dont know whats wrong with my htaccess. I hope someone can help me as many people are hotlinking my image.

1. Already trying to edit htacess at the root of Chevereto folder = Failed

This is how I do it :

ServerSignature Off
Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^api$ api.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>

ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?maklumat.my [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

2. Already try to edit it in my htaccess image folder = Failed

This is how I do it :

<Files .*>
order allow,deny
deny from all
</Files>

AddHandler cgi-script .php .php3 .phtml .pl .py .jsp .asp .htm .shtml .sh .cgi .fcgi
Options -ExecCGI

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?maklumat.my [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]


And many more of htaccess tutorial that I already tried but none of them worked for me.

Already try all of this : http://altlab.com/htaccess_tutorial.html
http://www.alistapart.com/articles/hotlinking/
http://www.htaccesstools.com/hotlink-protection/
http://www.thewebsqueeze.com/web-design-tutorials/stop-image-hotlinking-with-htaccess.html
http://perishablepress.com/creating-the-ultimate-htaccess-anti-hotlinking-strategy/

After I edited my htaccess using all of the above method, I already clear my browser cache, turn on Cloudflare to development mode and Purge the cache. But also not worked. I really-really need help.
 
Rodolfo said:
But where on your rules you are allowing google?

I am not putting it yet because I need to make sure it will work first :(

Which httaccess that I need to put it?
 
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?maklumat.my [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
 
Rodolfo said:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?maklumat.my [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

Yeah I know it but where's the place to put it? at the root of Chevereto's httaccess folder or image's httaccess folder?
 
root chevereto and you must add google in the referals. You mayl also add the google bot ip.
 
Rodolfo said:
root chevereto and you must add google in the referals. You mayl also add the google bot ip.

Can use this? :

# hotlink protection allowing for multiple domains
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-01\. [NC]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-02\. [NC]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-03\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteCond %{REQUEST_URI} !^/hotlink\.jpg$ [NC]
RewriteRule \.(gif|jpg|png)$ http://domain.tld/hotlink.jpg [R,NC,L]

And just paste it like this? :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^api$ api.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>

ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

# hotlink protection allowing for multiple domains
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-01\. [NC]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-02\. [NC]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-03\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteCond %{REQUEST_URI} !^/hotlink\.jpg$ [NC]
RewriteRule \.(gif|jpg|png)$ http://domain.tld/hotlink.jpg [R,NC,L]

Sorry for many question, a little bit noob about this :|
 
yeah but you have to use NC,OR in the conditionals and in the last one you have to only put NC
 
Rodolfo said:
yeah but you have to use NC,OR in the conditionals and in the last one you have to only put NC

Like this right? I added ask.com and please check it out whether it true or not :

# hotlink protection allowing for multiple domains
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-01\. [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-02\. [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-03\. [NC,OR]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC,OR]
RewriteCond %{HTTP_REFERER} !google\. [NC,OR]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC,OR]
RewriteCond %{HTTP_REFERER} !ask\. [NC,OR]
RewriteCond %{REQUEST_URI} !^/hotlink\.jpg$ [NC]
RewriteRule \.(gif|jpg|png)$ http://domain.tld/hotlink.jpg [R,NC,L]

And 1 more, I used Facebook application that will ping my entry automatically from my site to Facebook. It is called RSS Graffiti. Should I add Facebook or RSS Graffiti to this httaccess? Because in Facebook it will show thumbnail from the image in my post.

Sorry for one more time for the asking. I wonder that I can pay someone that would create complete httaccess for me.

Will you Rodolfo? It will save my time and I am happy if you want me to pay you to create this httaccess. :)
 
I'm not expert with this, it could work but you have to try over and over I guess.
 
Rodolfo said:
I'm not expert with this, it could work but you have to try over and over I guess.

Okay, btw, this is okay already? Got something wrong? :

# hotlink protection allowing for multiple domains
RewriteEngine on
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-01\. [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-02\. [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://([^.]+\.)?domain-03\. [NC,OR]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC,OR]
RewriteCond %{HTTP_REFERER} !google\. [NC,OR]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC,OR]
RewriteCond %{HTTP_REFERER} !ask\. [NC,OR]
RewriteCond %{REQUEST_URI} !^/hotlink\.jpg$ [NC]
RewriteRule \.(gif|jpg|png)$ http://domain.tld/hotlink.jpg [R,NC,L]
 
Back
Top