简体   繁体   中英

Get content of blocked site in php

I want to get the content of website using php.
But the site which I want to get content is blocked in my region.

<?php file_get_contents('http://wwww.blocked_site_in_region.com'); ?>  

I want to get only title, Heading and some other data.
I know there is a way to use proxy but I do not want to use it.
Is there any other way to achive this.
Thanks...

It is something about your network, not PHP itself. So you need to use proxy as you mentioned in your question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM