c++ - How to block the HTTP request to a particular IP in libcurl? -


i'm using libcurl(http://curl.haxx.se/libcurl/) fire http request. want block request particular ip address once fqdn resolved ip address.

how , can block request particular ip address?

libcurl has no block-this-ip-functionality built-in. provide building blocks build own!

use curlopt_opensocketfunction , have callback address check, , return failure if "bad" address used , otherwise call normal socket() function.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -