The best way is to insert a collar that sits internally in the suspension parts and that restricts the extended length of the component. As a result you might need to cut down the length of the springs in order to avoid increasing the pre-load unnecessarily. Obviously, you need to make sure you don't restrict the movement so much that you haven't got enough travel any more, especially if you plan to ride dirt and jump it.
The collar can be made really easily using some aluminium or stainless sheet cut to the right length and then rolled - you can then experiment as you wish with the best length for you. As you shorten the front suspension there will be minor changes to the front end handling characteristics (like raising the forks in the triple clamps).
The other suggestions Taffy makes will all adversely affect handling if you're in any way demanding of the bike.
Hope this helps,
Simon