Home  >  Article  >  Backend Development  >  wordpress - cloudflare拦截PHP CURL怎么解决

wordpress - cloudflare拦截PHP CURL怎么解决

WBOY
WBOYOriginal
2016-06-06 20:11:381456browse

我想要获取通过Wordpress的wp_remote_get()获取 链接https://www.random.org/integers/?num=10&min=1&max=45&col=1&base=10&format=plain&rnd=new提供的真随机数,但是由于random.org使用了cloudflare保护,导致每次获取都会被拦截,请问应该如何解决?

回复内容:

我想要获取通过Wordpress的wp_remote_get()获取 链接https://www.random.org/integers/?num=10&min=1&max=45&col=1&base=10&format=plain&rnd=new提供的真随机数,但是由于random.org使用了cloudflare保护,导致每次获取都会被拦截,请问应该如何解决?

还是那句话,既然要装就装的像点,先用浏览器正常访问,抓包,把CURL发的包起码和浏览器搞成一样吧?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn