Hey. Just joined, Be nice

I am need of help creating a configuration file. It needs to only allow IP : 71.99.85.23

And it needs to block the following sites - Gmail.com,yahoo.com,facebook.com

If someone could please do it for me, and do it in pastebin, the help would really be appreciated.