How to check a proxy server safety before using it