To be more specific let me give an example : If I search a keyword "rankog" on google I get the website rankog.com in the search result, but in the google search results i find some results like (a)www.markosweb.com/www/rankog.com/ and (b)www.tracedomain.com/rankog.com, I know these are some seo tools which give domain information.
My question in 1 line is how such websites (a and b) capture the search terms in their title/url?.
If I want to do the same thing - Capture a search term in google on the title/url of my page how should I do it; say I have 1000 keywords and I want to capture them in my page url, as done in (a) and (b) making 1000 pages is not the solution i guess. How do these website work and capture 1000's of keyword in their url, title?
This is done by parsing the referrer URL. Most browsers will send the prior URL in their header. You can parse this, and figure out what the search terms were.
$_SERVER['HTTP_REFERER'];
http://php.net/manual/en/reserved.variables.server.php
Now, getting your page indexed by Google is a whole 'nother story. You can sniff for their user-agent and dynamically create a bunch of fake pages, but if you do that, everyone will hate you and won't spend much time on your sites anyway.
If you want your site to show up in Google listings, the best way to do that is to have great content that others will link to.