> -----Original Message-----
> From: Connie DeCinko [mailto:[EMAIL PROTECTED] 
> 
> [snip]
> http://www.mozilla.org/projects/netlib/Link_Prefetching_FAQ.html

You are missing something, as are many others.  This has *nothing* to do
with Mozilla Foundation's support for page prefetching.  This is Google
Web Accelerator's systematic loading of every link on every page you
ever visit while using GWA.

There are some solutions already written up to block GWA via the server,
etc.  I propose instead simply putting the following code in your pages,
e.g. index.cfm or index.php file for most applications and frameworks:

PHP:
if(array_key_exists($_SERVER['HTTP_X_MOZ']))
{
        if(strtoupper($_SERVER['HTTP_X_MOZ']) == 'prefetch')
        {
                header("HTTP/1.x 403 Forbidden");
                header("Content-Type: text/html; charset=iso-8859-1");
                header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                header("Cache-Control: no-store, no-cache,
must-revalidate");
                header("Cache-Control: post-check=0, pre-check=0",
FALSE);
                header("Pragma: no-cache");
                header('Accept-Ranges:');
                exit();
        }
}

CFML:
<cfif structKeyExists(cgi, 'HTTP_X_MOZ')>
        <cfif cgi.HTTP_X.MOZ EQ 'prefetch')>
                <cfheader statuscode="403" statustext="Google Web
Accelerator requests are forbidden." />
                <cfabort />
        </cfif>
</cfif>

-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include <stdjoke.h>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205880
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to