Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: goodroi
At the top of every forum here at WebmasterWorld you will find a link to the forum Charter [webmasterworld.com] which is a *must read* for each forum. In the Charter for this forum you will find information on robots.txt including a
Robots.txt Tutorial [webmasterworld.com] which has an example of what you ask.