Results 1 to 8 of 8

Thread: Pagerank script

  1. #1
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543

    Pagerank script

    I have been try to get this script working:

    http://www.googlecommunity.com/scrip...e-pagerank.php

    I am literally cutting and pasting the code and uploading the script but keep getting this error:

    Warning: file(http://www.google.com/search?client=...=info:site.com): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/critic/public_html/pagerank.php on line 219
    site.com PageRank:

    I have been talking with ppl @ DP and this exact scipt is being used on their servers no worries. I even tried using their modified versions of it and still same error. I thought maybe it's my server, so I signed up with some free php hosting server and still the same error.

    Does know why the wtf I am getting a 403 returned from google and no one else is? Or does anyone have an alternate script I can use for this.

    Thanks

  2. #2
    I'm the oogie boogie man! James's Avatar
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    1,566
    You sure you have the permissions set correctly on this file and the files that are included/required/etc. into it?

  3. #3
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543
    Yeah. It's just one file. I reckon there is something wrong with the url it's generating. Checksum maybe wrong..

  4. #4
    Registered Member moonshield's Avatar
    Join Date
    Aug 2004
    Location
    Charlotte
    Posts
    1,281
    hmm. You may need a Google API Identification. Do you have that? The 403 may be occuring when you are trying to access Google's API.

  5. #5
    I've had no problem getting that script to work.
    The problem seems to be from the GoogleCH function.
    This function creates a key that google uses.
    Do you have the right code for the GOOGLE_MAGIC variable?
    Should be:
    define('GOOGLE_MAGIC', 0xE6359A60);
    Roger Stringer - freekrai.net
    DBStract - Build Virtual Databases

  6. #6
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543
    Quote Originally Posted by freekrai
    I've had no problem getting that script to work.
    The problem seems to be from the GoogleCH function.
    This function creates a key that google uses.
    Do you have the right code for the GOOGLE_MAGIC variable?
    Should be:
    define('GOOGLE_MAGIC', 0xE6359A60);
    Yep, I thought it may have been that too so I checked and it's ok. The srcipt is an exact copy from what others are using and it just doesn't work on my server. Maybe it could be a server config issue? I dunno, Im lost with this one...

  7. #7
    Working. Masetek's Avatar
    Join Date
    Aug 2005
    Location
    Aust
    Posts
    543
    FYI I was taking to some other ppl about this...and all we came up with was google might have banned requests coming from my ip range. Apparently google frowns apon people using these tools to query google without using the api.

  8. #8
    Have you tested it on another machine in your IP range?
    The reason I mentioned the google_magic key and all that earlier is because if the scripts screws up the key generation it does for the site you want to check, then it will return a 403 error.
    Roger Stringer - freekrai.net
    DBStract - Build Virtual Databases

Similar Threads

  1. AWS script: WSDL error
    By fatnewt in forum Advertising & Affiliate Programs
    Replies: 3
    Last Post: 10-08-2005, 11:19 PM
  2. Internal page pagerank
    By RyaninZion in forum Search Engine Optimization
    Replies: 11
    Last Post: 06-27-2005, 09:42 PM
  3. biz-directory script
    By Percept in forum General Management Issues
    Replies: 0
    Last Post: 07-02-2004, 01:22 PM
  4. theories on exchanging links and pagerank
    By Kyle in forum Search Engine Optimization
    Replies: 9
    Last Post: 04-27-2004, 10:58 AM
  5. Redirect script with statistics, graphs, etc
    By emke in forum Website Programming & Databases
    Replies: 7
    Last Post: 05-20-2003, 03:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •