dodgerblue
May 12 2005, 05:35 PM
| | 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. |
Reply
R0boT39
May 12 2005, 07:22 PM
Thank you for this tutorial! It is really great! thank you.
Reply
bjrn
May 12 2005, 09:46 PM
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?
Reply
moldboy
May 12 2005, 10:27 PM
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!
Reply
SystemWisdom
May 13 2005, 01:02 AM
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.
Reply
dodgerblue
May 13 2005, 07:15 AM
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  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.  More knowledgeable people, care to share some of that brain juice? 
Reply
bjrn
May 13 2005, 12:06 PM
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.
Reply
Recent Queries:--
google web accelerator blocks warez - 81.35 hr back. (1)
Similar Topics
Keywords : block, google, web, accelerator, caching, pages
- Simple Javascript And Password System
How to protect your pages with password (6)
Php--> Content-only Pages
Create easy to edit php pages. (9) Description Learn to create easy to edit content-only pages with php. By parsing your layout into
your pages, you can reduce file sizes and files will become much neater. Try it out Ok, lets
start by creating a file called template.php. CODE <?php
//--------------------------------- //Layout top section //---------------------------------
$top = <<< html <!-- include HTML header code here --> <body>
INSERT CODE FOR [b]TOP[/b] OF LAYOUT HERE. html;
//--------------------------------- //Layout bottom sec....
Create A Google Seach Result Page Embed Within Your Site Page.
(12) Create a google seach result page embed within your site page. It is easier to create
web page that embeded the google search result in it. The first step is to go to google apply an
account for the google ad-sense. After that login to you account and choose the create ad-seach
option. Most of time the google search box give all we have the great and powerfull seach ability.
But, have you think every time users get seach with it. They do redirected to another page that is
not within you site. It is easier to create web page that embeded the google sea....
Adding Your Website To Google
How to register with google (20) Hi everyone. Hopefully here im going to tell you how to register yourself with the Google search
engine and get yourself in their results. Ill start the tutorial assuming you already have Meta
tags or other search engine optimisation techniques in place. This tutorial is solely about
registering with google. At one time i thought simply using meta tags etcetera would get you listed
in Google, i then found out that didnt work, so i wondered why, and the fruits of my labour are what
will go into this tutorial. the first step is to get a google account, this will get y....
Do You Want To Use Php Code In Your Html Pages?
Within two minutes you will! (9) Whilst searching around for help to setup cutenews blog I came across a way to use php in html pages
- lo and behold it works! so I thought I'd share it with you all (Unfortunately I can't
remember the site so I wrote this up a couple of minutes after I did it:) ). This method requires a
web server with apache installed. So, luckily for us all this covers the whole of Trap17... even
Qupis /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> Just
to make the point, this is in no way a difficult task and it doesn't requir....
Document Type Declarations
And why we use them in html pages (0) This code: CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"> <html> <head>
<title>HTML 4.0 Strict document</title> <meta
http-equiv="content-type" content="text/html;charset=utf-8" > <meta
http-equiv="Content-Style-Type" content="text/css" > </head>
<body> <p>... Your HTML content here ...</p> <p>... More
HTML content here ...</p> </b....
Download Videos From Sites & Convert It.
especially sites like youtube, google etc... (28) This tutorial shows you how to download videos from sites like YouTube, Google, Break etc, which
runs is in the extension of .flv(Flash Video), and then convert it to .avi or .mpg format. First of
all, go to http://keepvid.com This site support the download of the sites listed below. QUOTE
Angry Alien, ArtistDirect, Blastro, Blennus, Blip.tv, Bofunk, Bolt, Break.com, Castpost, Current TV,
Dailymotion, DevilDucky, FindVideos, Free Video Blog, Google Video, Grinvi, Grouper, iFilm, LuluTV,
Metacafe, Midis.biz, Music.com, MusicVideoCodes.info, MySpace, MySpace Video ....
Making A Dynamic Page On Blogspot
Using an external server to make your pages hosted on blogspot dynamic (5) Good morning everyone. Have you ever wondered how to allow your visitors to edit content on your
blog? Like adding a post straight off the page, adding a link, editing your profile etc. This will
be extremely useful if you want your visitors to contribute to your blog besides writing comments or
tagging. 1. Adding a post straight off the page. Go to blogger.com, login, select your blog. Go to
settings -> email. By enabling blog email, you can now add a post by simply sending an email to the
address you specified. The address should look something like: yourusername....
Advanced Google Searching
bend google like a ruler! (13) I have created this tutorial to demonstate some of the more advance searching techniques in the
worlds most famous search engine Google (google.com for the none of you that dont know). I am going
to discuss features that can be used to googles best abilities and find almost any thing. Using this
technique you can download just about any tutorials, texts, ebooks, mp3s etc... first off i do not
promote nor do i encourage warez so by reading this (in your head or out loud) you give up the right
to blame me if you get caught. Right then now that thats out of the way lets ge....
How To: Make A Simple Php Site
Making one file show up on all pages using php (21) I have looked all over the site and could not find anything that was like this simple, or just like
this at all.. For some people i know that you are using a basic HTML site...and having a big menu
if you want to add somthing you have to go into every one of the pages and add or remove or edit
what you want to do, but with somthing verry simple all you would have to do is edit one file, and
all of the pages that have the PHP script on them would suddenly change to what that one file is.
So to start off if you are planning on using this little tirck, the page that you a....
Not To Be Banned By Google
Take care that your site is not banned (2) /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> Strategic search engine
optimization involves far more than keyword research, META tags and content. If you want to mange an
SEO program, you need to be aware of any issue that can affect your success. Domain name management
is one of the big factors. Effective domain name management is critical because you could end up
getting banned from Google and other search engines if you take the wrong approach. Why would
Google ban you? In the spirit of fair play and providing depth in its results, Google ....
How To Edit Your "index Page"
Adding new pages? (0) This tutorial was requested by sxyloverboy . Introduction: sxyloverboy has asked me how
to make your navigation bar on him website change to add another page, without having to do it on
every page. Well, I have the answer for you! Beginning Assuming you have a FTP upload
access, you'll be open your file "index.php" -=Example=- Once your "index.php" file is open
press "CRTL+F" (Find) and search for something that looks like this; CODE
<tr> <td class="off" onmouseover=....
Custom 404 Error Pages
A Tutorial On How To Make Custom 404 Error Pages (17) I've seen a tutorial on here and no offense but it was horrific, this is the real way you do a
404 Error Page. Make a file called: htaccess.txt Open it up and put this: CODE ErrorDocument
404 /myerrorpage.html You will need to change myerrorpage.html to whatever your page is called.
Also when you upload this file to your server you need to rename it to: .htaccess Yes, the dot is
before the words. You need to do this on the server because on Windows you cannot do that!....
Test Your Php Pages W/o Upload/internet
complete *working* guide on how to test your php pages (57) In this tutorial, I'm going to show you how to test your PHP pages without the Internet or
uploading the files to your trap17 server. This tutorial is similar to doom's, but the links he
provided does not work, so I decided to make my own tutorial with working links. The program that I
will be using for this tutorial is called XAMPP . XAMPP is a modification of the popular Apache
server, and I'm using XAMPP because of its simplicity to install as well as maintain. The
current version of XAMPP is 1.4.13 and it has the following bundled in the download: QUOT....
Secure Dynamic Pages Ii
(0) Just put the following code in every begining of your PHP script: CODE <?php
error_reporting("0"); ?> So, you will never see any errors. OR CODE
<?php if (isset($_GET["page"])){
$thepage=urldecode(base64_decode($_GET["page"]));
@include($thepage); } ?> ....
Secure Dynamic Pages
Another good php tutorial. (7) Hello all, Recently a friend of mine gave me this code to make your site completley dynamic and
secure at the same time. Here is what you have to do. Open a new page in your text editor and paste
in this code. CODE <?php error_reporting (E_ALL ^ E_NOTICE);
if(!$page){ $page = $HTTP_GET_VARS['page']; }
if($page=="" or $page=="main"){
include("main.php"); } if($page=""){ die("You
cannot access this page directly..."); } ?....
Looking for block, google, web, accelerator, caching, pages
|
|
Searching Video's for block, google, web, accelerator, caching, pages
|
advertisement
|
|