Are you tired of mobs entering or even making it to your home? If so then this is for you.
First dig out you space.For this to work you should probably do it 5 or more wide and 3 or more blocks deep.
If you want (you don't have to) fill the bottom with something.
Place a sign on the block in the middle at one end.Then crouch and place the sign going along to the other side.
Crouch and place carpet of your choice on the signs.
build a wall of some sort otherwise the mobs will just go around.
You've finished!Congratulations.Also if you are on creative and you spawn a mob on the carpet it will just stand still.