how to tell if a page is forwarded from a cached page.

3 posts / 0 new
Last post
#1 Thu, 11/05/2015 - 13:08
edwardsmarkf

how to tell if a page is forwarded from a cached page.

hello -

EDITED:

is there any way to tell by looking at the apache environmental variables if a page forward came from an old(er) cached page?

in other words, say i had a webpage that contained the following link:

http://myDomain(dot)com/index.php?input=oldLink

and then i changed it to:

http://myDomain(dot)com/index.php?input=newLink

looking at /input.php, is there an apache variable somewhere that might tell me that the use of "oldLink" is coming from a cached website?

i should think that anybody who is coming to my server with 'oldLink" is using a cached page.

thank you very much.

Sat, 11/07/2015 - 10:36
edwardsmarkf

hmmm no replies so far.

i have a feeling the solution may lie in looking here:

[HTTP_USER_AGENT] => \Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer[DOT]org/dotbot, help@moz[DOT]com)

Tue, 11/10/2015 - 08:48
edwardsmarkf

so far this seems to be working:

    if  ( preg_match('/(bing|dot)bot/', $_SERVER['HTTP_USER_AGENT'] )  )    {
            exit;   // bot - kill 2015-11-09
    }

any suggestions are appreciated.

Topic locked