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
Post a Comment