Your own custom google search on your site



Build your own custom google search box and go on a hunt for .edu and .gov blogs which allow you to leave your backlinks

Let's make this a little more interesting - i show how to use certain google operators and build a quick search-box which you can put on a site. The box will provide a very simple input form where you can enter a desired keyword and search exclusively for *.EDU and *.GOV blogs with that keyword on the page.

The google operators which i used are the ones from my earlier blog entry at http://www.1up-seo.com/how-get-edu-backlinks

What will this search box do ?

It will search only .EDU and .GOV blogs (or forums) where it is allowed to leave a comment. (Speak: Your backlinks :)

Here is a quick explanation of the parameters: http://www.stanford.edu/services/websearch/Google/asq_documentation.html

The "as_q" parameter basically just logically ANDs (say: adds) the other paramaters to the query.

I was talking about "inurl:" and and "site:" earlier http://www.1up-seo.com/how-get-edu-backlinks


This is really a very primitive, almost pathetic "hack", but it defintly does its job.

I am aware there are way more professional ways to implement a custom google search box. Problem: Google stopped giving out their SOAP API Key as of december 2006, they're giving out AJAX API keys now. So it would be way better to write some nifty AJAX application and then do the google searches from there. But in this case i just wanted to go as simple as possible and used simple HTML and forms. I also did not do any cosmetic "enhancements"...you can find plenty of nicer looking boxes online.

<center>
<form method="get" action="http://www.google.com/search" target="_blank">
<input TYPE="text" name="q" size="25" maxlength="255" value>
<input type="submit" name="btnG" value="Blogs">
<input type="hidden" name="as_q" value="inurl:blog" />
<input type='hidden' name='as_q' value='(site:.edu OR site:.gov)'/>

<input type='hidden' name='as_q' value='-"you must be logged in"'/>
<input type='hidden' name='as_q' value='-"posting closed"'/>
<input type='hidden' name='as_q' value='-"comment closed"'/>

</form>

</center>

 

Georg

Happy hunting for .edu and .gov blogs !

 

 


Build a web store just $9.99 mo. PayPal ready! Froogle ready! Get 1&1 Business eShop with FREE templates, marketing tools & FREE ad $.