Search with AltaVista
I'll do the AltaVista code first. I've known the HotBot code for a while. It's in the HTML Goodies book. I knew AltaVista had a method, but didn't know the code until Denis Payne from the Impington Parish Council sent me what he had done. Thank you, Denis, you're a gentleman.
Here's the code
. To apply it to your site, you need to make one change. This line:
<INPUT TYPE="HIDDEN" name=q cols=0 rows=0 wrap=virtual
VALUE="url:http://www.domain.com/your/site/">
That denotes the domain and directory to be searched. For instance, your site is http://www.dogbreath.com/users/~joe. You would set up the line to read:
<INPUT TYPE="HIDDEN" name=q cols=0 rows=0 wrap=virtual
VALUE="url:http://www.dogbreath.com/users/~joe/">
Notice the slash following the last directory, at the end of the URL. That tells AltaVista to search everything within http://www.dogbreath.com/users/~joe. You can also shortcut the typing by simply writing */users/~joe/ replacing the domain with a star. Either way will work.
If you have a domain unto itself then put in the domain only ending it with a slash; it will search anything within the domain.
One more thing: Notice how the code has a Thank You link back to AltaVista? Leave that in there. They're nice enough to allow you to search using their site, offer a link back to help increase their traffic.
Search with HotBot
The code is very similar.
It looks like this
.
Again, there's just the one line that needs to be altered:
<INPUT TYPE="HIDDEN" NAME="domain" VALUE="www.domain.com/users/joe/"> Note there's no leading http://. Other than that, the same rules apply as to putting it in your domain. Again, there's a courtesy link back to HotBot provided. Keep it.
That's That
This is a great method for getting smaller sites into the search business. Good luck and happy searching!
Enjoy!
[Set It Up]
[Search with AltaVista] [Search with HotBot]