how to build general proxy

what could be if a general proxy settings of the application that we created? So all the applications that want to connect to the internet must first pass this pxoxy