Google Hacks Free Open Book

Google Hacks

Previous Section Next Section

Hack 86 The No-Result Search (Prank)

figs/beginner.giffigs/hack86.gif

Want to prank your friends using Google? These techniques that will make sure your search has no results.

Ah, pranking with a search engine. Nothing quite so much fun as befuddling your friends with some utterly weird search results. One fun and easy thing to do is make a search result that one would think is wildly popular and set it up so it has no results.

There are a couple ways you can set up the prank. The first way is to hack the URL. The second is to create a search that will never have a result.

86.1 Hacking the URL

To hack a URL so a query has no results, just add the following code to the end of a URL:

&num=-1

Even if a num modifer already exists in the URL, adding another to the end overrides the first value. The &num=-1 switch informs Google that you want -1 results. Because it's not possible to return -1 results, Google will provide the next best thing: none.

86.2 Hacking the Search

Maybe you won't have a chance to hack the URL, and you'll need to hack the search instead. You can do that by creating a search with the special search codes that can't have any results.

One easy way to create a no-result query is to add any two site: syntaxes to it:

site:org site:com

Google operates with a default AND; a single page in Google's index can't be simultaneously found from both the .org and .com domains.

Or you can search for a site you know doesn't exist:

site:microsoft

While site:microsoft.com is a valid search for the site syntax, microsoft by itself (without the .com suffix) isn't. So a query like windows site:microsoft would get you zero results.

You can also fool Google by specifying that something must be included and not included at the sime time. This works best with really long queries so that the query visible from the query box looks normal. Try this one:

microsoft windows programming developer source -windows

The only problem is that Google echoes the search terms on its result pages, so if someone's paying attention, none of these tricks will work. A word to the wise: try only on your less observant friends.

Finally, if the person you're pranking doesn't know much about the Google date-range search syntax, you can also fake a search with a bogus date range. Use a five-digit number for the code so it looks semi-authentic, but it still won't give you any search results.

microsoft daterange:99991-99992

86.3 Delivering the Prank

There are three ways to deliver the prank to the prankee. The first way is in person. If you're working on a computer with them, slip in a couple of these searches, and then point confused to the Google search page that shows no results for Perl.

The second way is to send a search query to the prankee. The best way to do this is to use a special syntax that doesn't really work, like site:microsoft.

And the third way is to send an URL to the prankee. Google search URLs tend to be long, so you might want to use one of the URL-shortening services [Hack #38] before you send the URL to your prankee. And if you do shorten the URL, use the opportunity to put a couple of the more elaborate special syntax hacks in it, like site:com site:org, or a fake date-range search.

    Previous Section Next Section


         Main Menu
    Main Page
    Table of content
    Copyright
    Dedication
    Credits
    Foreword
    Preface
    Chapter 1. Searching Google
    Chapter 2. Google Special Services and Collections
    Chapter 3. Third-Party Google Services
    Chapter 4. Non-API Google Applications
    Chapter 5. Introducing the Google Web API
    Chapter 6. Google Web API Applications
    Chapter 7. Google Pranks and Games
    7.1 Hacks #86-92
    Hack 86 The No-Result Search (Prank)
    Hack 87 Google Whacking
    Hack 88 GooPoetry
    Hack 89 Creating Google Art
    Hack 90 Google Bounce
    Hack 91 Google Mirror
    Hack 92 Finding Recipes
    Chapter 8. The Webmaster Side of Google
    Colophon
    Index


    More Books
    PHP Hacks
    Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
    The Koran (Holy Qur'an)
    Macromedia Flash 8 Bible
    Search Engine Optimization for Dummies
    YouTube Traffic
    PHP 5 for Dummies
    Harry Potter and The Chamber of Secrets
    Harry Potter and the Sorcerer's Stone
    The Pilgrim's Progress
    Wireless Hacks
    Flash Hacks. 100 Industrial-Strength Tips & Tools
    PayPal Hacks. 100 Industrial-Strength Tips and Tools
    Amazon Hacks
    Pdf Hacks
    The Da Vinci Code
    Google Hacks
    The Holy Bible
    Windows XP For Dummies
    Harry Potter and the Half-Blood Prince
    Seo Book
    Upgrading and Repairing Networks
    Macromedia Dreamweaver 8 UNLEASHED
    Windows XP Annoyances
    Windows XP Hacks
    Microsoft Windows XP Power Toolkit
    Teach Yourself MS Office In 24Hours
    iPod & iTunes Missing Manual
    PC Hacks 100 Industrial-Strength Tips and Tools
    PC Overclocking, Optimization, and Tuning - 2th Edition
    PC Hardware In A Nutshell 3rd Edition
    PC Hardware in a Nutshell, 2nd Edition
    Upgrading and Repairing PCs
    Google for Dummies
    MySQL Cookbook
    Teach Yourself Macromedia Flash 8 In 24 Hours
    PHP CookBook
    Sams Teach Yourself JavaScript in 24 Hours
    PHP5 Manual
    Free Games Paper Airplanes
    500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele