Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-18-2013, 05:10 AM   #1
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
prevent google/bing/yahoo hotlinking/direct link to images

what are you using to prevent the TGPs google, yahoo, and bing from hotlinking and directing surfers straight to single images? Is there a plugin for wordpress to do this? And how would I do this in htaccess for non-wp sites?
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 05:17 AM   #2
LouiseLloyd
SO FUCKING SCAMMED
 
LouiseLloyd's Avatar
 
Industry Role:
Join Date: Mar 2010
Location: UK
Posts: 1,407
If you're using Yoast Wordpress SEO plugin there's an option in permalink settings "Redirect attachment URL's to parent post URL.
__________________
LouiseLloyd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 05:20 AM   #3
pinkz
Mr 1%
 
pinkz's Avatar
 
Industry Role:
Join Date: May 2005
Location: Nomad
Posts: 1,397
htaccess method

add

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|pn g|pdf|css)$ - [F]

where domain.com is replaced with your domain

can also be used for wp and non wp sites alike.
__________________
$$$$ Video Secrets $$$$

Last edited by pinkz; 10-18-2013 at 05:21 AM..
pinkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 05:41 AM   #4
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by LouiseLloyd View Post
If you're using Yoast Wordpress SEO plugin there's an option in permalink settings "Redirect attachment URL's to parent post URL.
I do some places, probably easier to just use the htaccess posted though, thanks for the reply anyway. Also, sent you a PM here a few days back if you could have a butcher's at it
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 05:44 AM   #5
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by pinkz View Post
htaccess method

add

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|pn g|pdf|css)$ - [F]

where domain.com is replaced with your domain

can also be used for wp and non wp sites alike.
Nice one, cheers mate

** actually just tried this and it's not preventing bing from displaying my image, nor redirecting when the image is clicked on
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 05:48 AM   #6
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by LouiseLloyd View Post
If you're using Yoast Wordpress SEO plugin there's an option in permalink settings "Redirect attachment URL's to parent post URL.
heh, and this didn't work either, presumably because I ftp my images, rather than use wp attachments thingo
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 05:51 AM   #7
gracesfall
Confirmed User
 
gracesfall's Avatar
 
Industry Role:
Join Date: Sep 2013
Location: Florida
Posts: 252
Quote:
Originally Posted by pinkz View Post
htaccess method

add

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|zip|rar|mp3|flv|swf|xml|php|pn g|pdf|css)$ - [F]

where domain.com is replaced with your domain

can also be used for wp and non wp sites alike.
How does that combine w/ what WP normally puts in the .htaccess file? I tried adding it and it made my whole site go 501 Server Error on me. Ugh.
__________________
-= gracesfall =-

FreeLesbianPornBlog.com
Follow me on Twitter: https://twitter.com/gracesfall
Like me on Facebook: Free Lesbian Porn Blog
Hit me up on ICQ: 663050376

Domains for Sale: DaddyWhoreBucks.com | YoungAndFuckable.com | KnobGobblers.com
gracesfall is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 07:10 AM   #8
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://anyothersite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://anyothersite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.anyothersite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.anyothersite.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.yoursite.com/index.html [R,NC]
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing

Last edited by Magnetron; 10-18-2013 at 07:12 AM..
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 07:18 AM   #9
pinkz
Mr 1%
 
pinkz's Avatar
 
Industry Role:
Join Date: May 2005
Location: Nomad
Posts: 1,397
Quote:
Originally Posted by Jel View Post
Nice one, cheers mate

** actually just tried this and it's not preventing bing from displaying my image, nor redirecting when the image is clicked on
it may be that bing is displaying your image from it's cache.

also here is a handy htaccess generator for stopping hotlinking
http://www.htaccesstools.com/hotlink-protection/
__________________
$$$$ Video Secrets $$$$
pinkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 07:19 AM   #10
pinkz
Mr 1%
 
pinkz's Avatar
 
Industry Role:
Join Date: May 2005
Location: Nomad
Posts: 1,397
Quote:
Originally Posted by gracesfall View Post
How does that combine w/ what WP normally puts in the .htaccess file? I tried adding it and it made my whole site go 501 Server Error on me. Ugh.
try

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|flv|swf|png|pdf|css)$ - [F]

place it after the standard wp code in the htaccess file
__________________
$$$$ Video Secrets $$$$
pinkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 07:35 AM   #11
anexsia
Confirmed User
 
anexsia's Avatar
 
Industry Role:
Join Date: May 2010
Posts: 5,735
I see that a lot of images on Google Image Search get like transparent blacked out and force you to visit the website to view the images...how do you do this??
anexsia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 07:59 AM   #12
dragas
Registered User
 
dragas's Avatar
 
Industry Role:
Join Date: Sep 2012
Location: Toronto
Posts: 66
User-agent: *
Disallow: /*.jpg$
dragas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 09:40 AM   #13
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Slightly modified, but should be the exact same thing in terms of what it does I *think*

Quote:
Originally Posted by Magnetron View Post
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com/.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.domain.com/yourpreferredredirect [R,NC]
does the job with bing as far as the redirect, but not for google
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 09:41 AM   #14
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by anexsia View Post
I see that a lot of images on Google Image Search get like transparent blacked out and force you to visit the website to view the images...how do you do this??
can't remember the url now, but a script that if you're as thick as me with script stuff etc your head will explode at
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 11:42 AM   #15
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
Quote:
Originally Posted by Jel View Post
Slightly modified, but should be the exact same thing in terms of what it does I *think*

Originally Posted by Magnetron
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com/.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.domain.com/yourpreferredredirect [R,NC]

does the job with bing as far as the redirect, but not for google
You were quoting pinkz.

What I posted works for both Bing and Google no problem.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 02:42 PM   #16
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by Magnetron View Post
You were quoting pinkz.

What I posted works for both Bing and Google no problem.
nah pinkz was different, I used yours, just used the single line instead of http|www|domain.com

I'll try again with your exact one in case I've fucked something up which is most likely the case if you say yours works in both
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 05:00 PM   #17
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
magnetron, nope, that doesn't prevent hotlinking in google, nor does it redirect when clicking 'view image', just sends straight to the full size image url
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 06:36 PM   #18
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
Quote:
Originally Posted by Jel View Post
magnetron, nope, that doesn't prevent hotlinking in google, nor does it redirect when clicking 'view image', just sends straight to the full size image url
Try clearing your cookies before checking your images in Google, cuz it does work.

And if it still doesn't work for you, I'm at a loss to explain why.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing

Last edited by Magnetron; 10-18-2013 at 06:38 PM..
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 06:46 PM   #19
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
What am I saying? Clear out your History.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 06:49 PM   #20
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by Magnetron View Post
Try clearing your cookies before checking your images in Google, cuz it does work.

And if it still doesn't work for you, I'm at a loss to explain why.
I'm clicking on the 'view image' link in google, which is linked to the image url - that's what I want to redirect eg
http://www.google.com/imgres?um=1&lr...&biw=-1&bih=-1
'view image' links to the direct image url (only clicking on the pic takes you to the original page) - I want to fuck off the ability for a surfer to get taken straight to the image only.
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 06:55 PM   #21
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
Clear your Temporary Internet Files Folder and check again.

I meant to say this in the first place. I think I'm having a stroke.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing

Last edited by Magnetron; 10-18-2013 at 06:56 PM..
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 07:22 PM   #22
PeR930
Confirmed User
 
Industry Role:
Join Date: Dec 2012
Posts: 283
Does this affect google and bing as they crawl and index the images?
PeR930 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2013, 09:46 PM   #23
marlboroack
So Fucking Banned
 
Industry Role:
Join Date: Jul 2010
Location: ☣
Posts: 9,327
lol
marlboroack is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-19-2013, 01:38 AM   #24
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,384
http://wp-picshield.com/
http://wordpress.org/extend/plugins/imaguard/
http://wordpress.org/extend/plugins/google-break-dance/
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-19-2013, 05:48 AM   #25
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
Quote:
Originally Posted by ViPeR_930 View Post
Does this affect google and bing as they crawl and index the images?
Nope. It limits them to only showing their crappy snapshots of your full size images.

But if you don't clear out the full size images and page files that were cached during previous searches, they'll just end up being reloaded in your browser and the Hotlink Protection will appear to be an unsuccessful.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-19-2013, 07:19 AM   #26
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
Quote:
Originally Posted by Magnetron View Post
Nope. It limits them to only showing their crappy snapshots of your full size images.

But if you don't clear out the full size images and page files that were cached during previous searches, they'll just end up being reloaded in your browser and the Hotlink Protection will appear to be an unsuccessful.
I'm doing a new search, clicking a new image. The given link is going to stay the same ie domain.com/a-or-b-or-c-path-to-image.jpg
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-19-2013, 08:15 AM   #27
Jel
Confirmed User
 
Jel's Avatar
 
Industry Role:
Join Date: Feb 2007
Posts: 6,904
as bizarre as it sounds, I got it working by adding /index.php to my domain instead of leaving it at domain.com

redirect works fine now, thanks very much Magnetron
Jel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-19-2013, 11:19 AM   #28
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
Awesome.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-06-2013, 07:24 PM   #29
PeR930
Confirmed User
 
Industry Role:
Join Date: Dec 2012
Posts: 283
This may get your site penalized by Google. Read this: http://www.seroundtable.com/google-m...tch-17631.html
PeR930 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2014, 05:25 AM   #30
mopek1
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 3,100
Quote:
Originally Posted by Magnetron View Post
RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://anyothersite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://anyothersite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.anyothersite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.anyothersite.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.yoursite.com/index.html [R,NC]
What will this do exactly?

I have lots of bing image searches and wonder how I can get the surfer to land on my website's page (that contains the image they clicked on in the bing search results) instead of seeing the single image in bing's results.
mopek1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2014, 06:02 AM   #31
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
Quote:
Originally Posted by mopek1 View Post
What will this do exactly?

I have lots of bing image searches and wonder how I can get the surfer to land on my website's page (that contains the image they clicked on in the bing search results) instead of seeing the single image in bing's results.
Search engines will only show surfers crappy thumbs of your images. When surfers try to access the full size versions, they are redirected to your page. Anyone hot linking your images can hijack your results, but you can still get surfers redirected to your site.

Best to turn off protection so all your images are properly indexed. Protection seems to hinder Google Bots, etc.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2014, 06:36 AM   #32
mopek1
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 3,100
Quote:
Originally Posted by Magnetron View Post
When surfers try to access the full size versions, they are redirected to your page.
...

Best to turn off protection so all your images are properly indexed. Protection seems to hinder Google Bots, etc.
For that first part you wrote (above) do you mean when they 'click' on the thumb?

For that second part you wrote, how do you turn off protection?

Thanks
mopek1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2014, 08:12 AM   #33
DannyA
Registered User
 
Join Date: Oct 2005
Posts: 85
Quote:
Originally Posted by ViPeR_930 View Post
This may get your site penalized by Google. Read this: http://www.seroundtable.com/google-m...tch-17631.html
Yes, it absolutely will. There's a trade off you have to make here. If they're going to put your image in their search results, it's obviously not in their interest to put images that won't open up in their search results. They've also dealt with plenty of shenanigans in the past with cloaking, so even if you get away with some form now, know it's something they consider for your long term strategy. Cloaking of any sort is fucking tricky. They detect it all easily but it's really hard to predict. Redirecting to the page with the image on it was always a bad idea, but lots of people do it without that metric putting them over any tipping point. At the same time, the next update could change the weight of some other metric and all the sudden you're actually flagged and that's fucked.

I really think before anybody does this though, they should crunch numbers on their server logs. Hotlink protection is meant to keep some dickhead from embedding images in his site to leech your bandwidth. If you allow Google to hotlink, they're hosting your thumbnail so at least when you do use up some bandwidth it's a prequalified click. They're also providing a direct link to the image (which is already cached), but they're also giving a free link to your page. Calculate what you spend on bandwidth vs. dollars earned from that traffic if you really want to decide.

Now what I personally would just always do to keep the image search traffic but keep other dickheads from leeching

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite\.com(/.*)*$ [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !yahoo\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !search\/cache [NC]
RewriteCond %{HTTP_REFERER} !cache [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpeg|gif|png)$ - [F]
That returns a 403 (forbidden). You can do a 302 to a "no hotlinking" image, but 302 literally means "found" and is treated as a promise that the server is sending you to the requested content. I just wouldn't, because to the algorithm that's intentional deception.
DannyA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2014, 08:21 AM   #34
DannyA
Registered User
 
Join Date: Oct 2005
Posts: 85
Quote:
Originally Posted by mopek1 View Post
What will this do exactly?

I have lots of bing image searches and wonder how I can get the surfer to land on my website's page (that contains the image they clicked on in the bing search results) instead of seeing the single image in bing's results.
Just to be a little clearer, this was what I was talking about in my post with the 302 redirects. If you mean you want it to hit your page on the thumbnail click you just can't do that. There's always going to be a hotlink there. If you want the direct image link to redirect to the page with the image, it's easy to do assuming each image is associated with a single page, but you need server side code and it's both very very blackhat and very very detectable.
DannyA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2014, 08:48 AM   #35
Magnetron
Lord High Groundhog
 
Magnetron's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Bumblefuck, USA
Posts: 1,841
Quote:
Originally Posted by mopek1 View Post
For that first part you wrote (above) do you mean when they 'click' on the thumb?
The thumbs or the view image links.

In the case of some douche hijacking your image, the thumb will send surfers to his site while the view image links will still redirect surfers to your site.

Quote:
Originally Posted by mopek1 View Post
For that second part you wrote, how do you turn off protection?
Thanks
Some hosting control panels like cPanel have a Hotlink Protection option. You add in only the sites you want to display your images ( including your own and don't forget to include your numerical address as well ) and turn it on. It automatically rewrites your .htaccess file with a code similar to what I posted. Turn it off, it restores your .htaccess to normal.

Otherwise, to do it manually - download your .htaccess file, save an original copy, rewrite the other. Upload the rewritten copy to activate HP. Upload the original copy when you want HP deactivated.
__________________
.
Approach the mirrored reflection saying his name three times : "Butcher .... Butcher .... Butcher ....."
and wait to see if this Bogeyman urban legend manifests in the background, looming over shoulder
While your neighbors were busy killing off everyone in the neighborhood
with your own butcher knife in hand concealed behind your back
you stood for
ever before the window saying
nothing
Magnetron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2014, 03:01 PM   #36
mopek1
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 3,100
Quote:
Originally Posted by DannyA View Post
1- Redirecting to the page with the image on it was always a bad idea,

2-They're also providing a direct link to the image (which is already cached), but they're also giving a free link to your page.
1- Why?

2- How are they giving out a free link? All I see is a search result link, same as what you'd get if you a did a web search and one of my sites was listed?

I'm not sure yet if I'll do this. Google threatening to penalize is getting to be less and less of a threat all the time since they are always decreasing affiliate's traffic anyway.
mopek1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.