Forum Moderators: phranque

Message Too Old, No Replies

Google PageRank Meter

building google pagerank website

         

jefendi

5:30 pm on Oct 31, 2006 (gmt 0)

10+ Year Member



Hi, sorry for my bad english

I wrote pagerank meter script using php, it's work. I [plan to make it available] as free service.

But i have little problem, how can i pass http refferal to my script using .htaccess so i know where my code access came from.

I'm newbie in .htacces :) please help me!

best regards,
Johan Efendi

[edited by: jdMorgan at 1:33 am (utc) on Nov. 1, 2006]
[edit reason] No URLs, please. See Terms of Service. [/edit]

jdMorgan

1:38 am on Nov 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The simplest approach would be to check the server variable "HTTP_REFERER" in your PHP script.

Note that some browsers are configured to not send a referer, and most search engine robots don't send a referer. So your script will need to accept a blank referer from browsers, and you may wish to use robots.txt and mod_access or mod_rewrite to prevent search engines from crawling your script page.

Jim