depends what you need it for...to stop players going through, just make a brush with the clip texture. To stop everything make a func_wall with rendermode set to texture, and render amount 0. If you're doing this in half-life, and want to stop monsters, make a func_monsterclip, and make sure the monsterclip flag in the monster's properties box is ticked.
I'm sure there are even more...