I have a website that has a lot of visits ~ over 20,000 a month from Google Images. Now the problem is users find my images with that search engine and quickly click the "view large size" thing that redirects them to .jpeg file. This means that they reach to the picture, not a page with ads and i can't earn anything from those visits. If there would be a way to disallow them to view .jpg file with "view large size" and read the post i could benefit a lot from those visits. Someone also told me that it's possible to create an image.php that will appear when they try to view that picture but my coding skills really suck so that's out of question. Anyway... how do you earn anything from Google Images visits? I mean... these 20k could bring me at least $40/month in adsense if they would see a page with ads when they want to view only the picture.
Put this in your <head> section: <script language="JavaScript1.1" type="text/JavaScript"><!-- Hide from old browsers. if(parent.frames.length > 0) top.location.replace(document.location); // Escape from any referring site's frame, but preserve one-click "Back". --></script> </script> HTML: It fully complies with Adsense also because it preserves back button functionality.
Hi sweetfunny, thanks for your code. However, when I try to put it in the header.php on my blog somewhere before "/head", I do not see it working... Where am I doing wrong? Kindly explain. Thanks a bunch!
I used to have a similar script in header.php but it's working pretty slow. I mean... the transfer from frame to blogpost will take 5 to 10 seconds and in that time most users click to view the large size and i loose them. this was the script i had: <script language="JavaScript" type="text/javascript"> if (top.location != self.location) top.location.replace(self.location); </script> Code (markup): @ farhajr - you can optimitze images for google by giving to each of them a unique title and description that you think people will search on Google Images
What I ment say was ,If you use the MOD rewrite rule to redirect those who are direct linking to your jpg images (via other pages OR referring from other domain ,then it can help you.Although i su*k at apache coding but I guess this will be the correct code RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?YOURSITE.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ http://YOURSITE.com/ [NC,R,L] Code (markup): As I already said,this might not be the correct code but hope you get my point EDIT : You got a better solution by sweetfunny
just see to it that u add the alt tags and the title for every image you upload.some people also change their filenames to keywords .