Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> How To Block Google Web Accelerator, from caching your pages
dodgerblue
post May 12 2005, 05:35 PM
Post #1


Super Member
*********

Group: Members
Posts: 270
Joined: 11-April 05
From: 10 inches from the computer screen
Member No.: 5,518



This only applies to your site, I don't know how I'm going to protect my email; I'm using gmail. This sucks big-time.

Anyway. This is how you do it.

If you have an existing .htaccess file in your root, add this to it:

CODE
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^72.14.192.
RewriteCond %{REQUEST_URI} !^/gwa-forbidden.html$
RewriteRule ^.*$ /gwa-forbidden.html


This is, of course, assuming you have RewriteEngine On[SIZE=7].

If you don't have it on, use this:

CODE
RewriteEngine on
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^72.14.192.
RewriteCond %{REQUEST_URI} !^/gwa-forbidden.html$
RewriteRule ^.*$ /gwa-forbidden.html


Where gwa-forbidden.html is the page you want people to see when they have been blocked.
Go to the top of the page
 
+Quote Post
R0boT39
post May 12 2005, 07:22 PM
Post #2


Newbie [Level 3]
***

Group: Members
Posts: 48
Joined: 14-April 05
Member No.: 5,673



Thank you for this tutorial! It is really great!


thank you.
Go to the top of the page
 
+Quote Post
bjrn
post May 12 2005, 09:46 PM
Post #3


Super Member
*********

Group: Members
Posts: 378
Joined: 8-January 05
Member No.: 3,174



QUOTE(tatatee @ May 12 2005, 06:35 PM)
CODE
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^72.14.192.
RewriteCond %{REQUEST_URI} !^/gwa-forbidden.html$
RewriteRule ^.*$ /gwa-forbidden.html

I don't really know anything about rewriting, but to me this looks like anyone using the Google Accelerator would just get a "blocked" message, is that what this does?

I guess it would be handy if you're afraid cookies with sensitive data are being spread to others through the GA thing (I heard that could happen), but are there any other benefits to blocking GA users?
Go to the top of the page
 
+Quote Post
moldboy
post May 12 2005, 10:27 PM
Post #4


Privileged Member
*********

Group: Members
Posts: 518
Joined: 29-April 05
From: Canada Eh?!?
Member No.: 6,408



QUOTE
I don't know how I'm going to protect my email; I'm using gmail.


How do you mean, the GA says it ignores https sites, which I am glad to say gmail is!
Go to the top of the page
 
+Quote Post
SystemWisdom
post May 13 2005, 01:02 AM
Post #5


Advanced Member
*******

Group: Members
Posts: 117
Joined: 3-May 05
From: A Canadian South of the 49th Parallel
Member No.: 6,544



Very nice! I have incorporated it into my site right away!
I have just a couple of questions tho;

How do I test it to see that it actually works? Do I need to Download GA and visit my site with it? (I am hoping I don't need to go that route, any other routes?)

Assuming some people don't have RewriteEngine installed with their PHP web server, couldn't you just use PHP (or ASP) to check the visitors IP, and if it is within the sub-net '72.14.192.*' then simply redirect the visitor to the forbidden page via HTTP Headers? (Would be more work, but it is another option).

I am only asking this because I don't really want to DL the GA and test the proposed solutions right now (somewhat busy), and to raise the same question for others to consider. Especially if others are using another web server which doesn't support the Rewrite Engine.
Go to the top of the page
 
+Quote Post
dodgerblue
post May 13 2005, 07:15 AM
Post #6


Super Member
*********

Group: Members
Posts: 270
Joined: 11-April 05
From: 10 inches from the computer screen
Member No.: 5,518



QUOTE(bjrn @ May 13 2005, 05:46 AM)
I don't really know anything about rewriting, but to me this looks like anyone using the Google Accelerator would just get a "blocked" message, is that what this does?

I guess it would be handy if you're afraid cookies with sensitive data are being spread to others through the GA thing (I heard that could happen), but are there any other benefits to blocking GA users?
*



Yes, you are absolutely right - it will block the GA.

Well, the only benefit is to me, and registered users of my site blogs. It would be a sort of protection against account hijacking which I've heard has happened several times. I think that already justifies this.

QUOTE(moldboy @ May 13 2005, 06:27 AM)
How do you mean, the GA says it ignores https sites, which I am glad to say gmail is!
*



Well, I'm much relieved to know that smile.gif

QUOTE(SystemWisdom @ May 13 2005, 09:02 AM)
How do I test it to see that it actually works?  Do I need to Download GA and visit my site with it? (I am hoping I don't need to go that route, any other routes?)

Assuming some people don't have RewriteEngine installed with their PHP web server, couldn't you just use PHP (or ASP) to check the visitors IP, and if it is within the sub-net '72.14.192.*' then simply redirect the visitor to the forbidden page via HTTP Headers? (Would be more work, but it is another option).

I am only asking this because I don't really want to DL the GA and test the proposed solutions right now (somewhat busy), and to raise the same question for others to consider.  Especially if others are using another web server which doesn't support the Rewrite Engine.
*



Have not the slightest clue - ok, I have a bit of a clue, try pretending that your computer's IP is 72.14.192.something and testing it out using the method in this thread http://www.trap17.com/forums/test-php-page...net-t20432.html (the one that outlines how to install apache and run your own test server from your computer).

How you are going to pretend your IP is in that range, I have no clue. wink.gif

More knowledgeable people, care to share some of that brain juice? smile.gif
Go to the top of the page
 
+Quote Post
bjrn
post May 13 2005, 12:06 PM
Post #7


Super Member
*********

Group: Members
Posts: 378
Joined: 8-January 05
Member No.: 3,174



I just read that you can't download GWA anymore. Google's site says
QUOTE
Thank you for your interest in Google Web Accelerator. We have currently reached our maximum capacity of users and are actively working to increase the number of users we can support.


But the question is of course if that is the real reason or if they've shut it down in order to fix the security issues.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Test Your Php Pages W/o Upload/internet(57)
  2. Custom 404 Error Pages(17)
  3. How To Edit Your "index Page"(0)
  4. Not To Be Banned By Google(2)
  5. How To: Make A Simple Php Site(21)
  6. Advanced Google Searching(13)
  7. Making A Dynamic Page On Blogspot(5)
  8. Download Videos From Sites & Convert It.(28)
  9. Document Type Declarations(0)
  10. Do You Want To Use Php Code In Your Html Pages?(9)
  11. Adding Your Website To Google(20)
  12. Create A Google Seach Result Page Embed Within Your Site Page.(12)
  13. Php--> Content-only Pages(9)
  14. Simple Javascript And Password System(6)


 



- Lo-Fi Version Time is now: 26th July 2008 - 03:10 PM