GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Getting images linked in Google (https://gfy.com/showthread.php?t=964693)

camperjohn64 04-21-2010 03:23 PM

Getting images linked in Google
 
I have probably about 200,000 images, spread across 10 domains over 5 years, and have never been able to get one of them index in google.

The only images I can get indexed are from stupid little websites that I made for friends (startdancinsd.com for example)

Can anyone else here that is successfully getting their images into google offer tips?

I use PHP to server my images, therefore I can only think it must be something with the headers...

Agent 488 04-21-2010 03:26 PM

like in google image search?

just make sure your image and alt tags match your keywords?

GrouchyAdmin 04-21-2010 03:29 PM

Quote:

Originally Posted by camperjohn64 (Post 17061328)
I use PHP to server my images, therefore I can only think it must be something with the headers...

Dingdingding.

How are you doing this? If you don't support 304, it'll never get linked. Using fpassthru() and readfile() type of shit is neat, but make sure you support HTTP/1.1.

camperjohn64 04-21-2010 05:58 PM

Ok I will research the 304. Is this for HTML files also?

At the moment I am only doing this:
Code:

            header("HTTP/1.1 200 OK");
            header("Status: 200 OK");
            header("Pragma: public");
            header("Cache-control: public");
            header("Accept-Ranges: bytes");
            header('Last-Modified: Sat, 03 Mar 1973 09:46:40 GMT');
            header('Expires: Wed, 18 May 2033 03:33:20 GMT');
            header("Content-Length: " . strlen($content));
            header("Content-Type: $content_type");
            header("Connection: close");
           
            echo $content;


fatfoo 04-21-2010 06:33 PM

Quote:

Originally Posted by Agent 488 (Post 17061343)
like in google image search?

just make sure your image and alt tags match your keywords?

I am guessing he is talking about Google Images.

V_RocKs 04-21-2010 06:48 PM

Pretty f'ing simple...

Have text near image with keywords you want. Name image keywords you want. Have a link near image with keyword you want. Title page with keywords. Alt tag keywords...

If that doesn't work, google is on to you.

alias 04-21-2010 06:50 PM

Alt tags and image naming.

jackknoff 04-21-2010 07:23 PM

Have you submitted your site itself to google? You can do so here

http://www.google.com/addurl/

Spanx!
Jack

camperjohn64 04-21-2010 07:51 PM

Done all those things. Google images: 0 links.

I think it must be the 304 header issue.

GrouchyAdmin 04-21-2010 07:57 PM

Quote:

Originally Posted by camperjohn64 (Post 17061861)
Ok I will research the 304. Is this for HTML files also?

At the moment I am only doing this:
Code:

            header("HTTP/1.1 200 OK");
            header("Status: 200 OK");
            header("Pragma: public");
            header("Cache-control: public");
            header("Accept-Ranges: bytes");
            header('Last-Modified: Sat, 03 Mar 1973 09:46:40 GMT');
            header('Expires: Wed, 18 May 2033 03:33:20 GMT');
            header("Content-Length: " . strlen($content));
            header("Content-Type: $content_type");
            header("Connection: close");
           
            echo $content;


I'm pretty sure that did piss them off. You're using 2 different forms of 'no cache', but the checksum of the file is always the same. You should be using eTags and sending 304 (not modified since) for them to pick it up. If you've not already been marked rogue.

camperjohn64 04-22-2010 10:15 AM

Checking my apache logs, I see the first access to a regular image is done with a 200, then a second access is a 304.

Is there way I can get a dump of the headers from firefox so I can reproduce this?

M0nk 04-22-2010 10:33 AM

place a text near to your image that has the propper keywords and its done!

MediaGuy 04-22-2010 11:03 AM

Do you have sitemaps for your site/s?

http://www.xml-sitemaps.com/

:D

seeandsee 04-22-2010 11:20 AM

Quote:

Originally Posted by camperjohn64 (Post 17061328)
I have probably about 200,000 images, spread across 10 domains over 5 years, and have never been able to get one of them index in google.

The only images I can get indexed are from stupid little websites that I made for friends (startdancinsd.com for example)

Can anyone else here that is successfully getting their images into google offer tips?

I use PHP to server my images, therefore I can only think it must be something with the headers...

get google image indexer :1orglaugh

GrouchyAdmin 04-22-2010 05:05 PM

Quote:

Originally Posted by camperjohn64 (Post 17063653)
Checking my apache logs, I see the first access to a regular image is done with a 200, then a second access is a 304.

Is there way I can get a dump of the headers from firefox so I can reproduce this?

Yeah. LiveHeaders.

camperjohn64 04-22-2010 10:19 PM

So I installed LiveHeaders, and tried to get it to show the 304:

https://gfy.com/skins/gfy/gfy_lady.jpg

The lady gives me a response of 200 every time.

Does anyone else see the same 200? Can you find a wesite that returns 304 for an image?

Here is an image that I am serving up with PHP:

http://www.photofight.com/flashgames/b/beerdude.jpg

What would you change in those headers?

camperjohn64 04-28-2010 10:57 AM

Wow instant results!!!

- I added the eTag to images
- modified the "Make PHP visible" option in php.ini (removes the "Powered by X-PHP..." in headers
- Took at look at other headers on other images and made mine look identical to them.

Only one week later, instant results in getting images indexed:

Ok it's not much, but it's better than 0 images! I didn't think they would show up so fast!

http://images.google.com/images?um=1...art=0&imgtbs=s


All times are GMT -7. The time now is 10:52 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123