can you give me example driver for cloudfare
ridwanmaulanaprogrammer opened this issue · 6 comments
hi stevebauman, please help me, can you give me example driver for cloudfare,
for this url -> return "http://ip-api.com/json/$ip"; how abou cloudfare, do you have any example.
Hi @ridwanmaulanaavana,
A pull request was just submitted for a Cloudflare driver: #120
Does this answer your question?
oh nice @stevebauman , in cloudfare driver function url($ip) is empty, but in driver IpApi we hit url "http://ip-api.com/json/$ip";
for clouddriver we don't need hit like this url?
and once more @stevebauman, do we need a clodfare account? where we put account or api key in driver cloudfare?
Hello, I have the same questions.
I am surprised that the url method is empty
You don't need a CloudFlare account or API key for the CloudFlare driver in this package. It uses headers that are injected by CloudFlare's managed DNS if you're behind their nameservers.
Thanks @nik-418! 🙏