Friday, 6 February 2015

My server prevent site scraping, but I need to allow my xml for scraping



First of all I already search the topic but it is different to what I need.


simplexml_load_file, cURL,file_get_contents allow_url_fopen already On.


Everything working fine.


My problem is my server is too much safe,it's ok for my content that can't easily graph by file_get_contents();


But now I have a project that need my other site (different server) to get content of my generated XML, I tried to find the ways to set .htaccess to allow just some folder to fetch with file_get_contents, simplexml_load_file


but it is not easy to find, and I already tried "allow from all" it doesn't work also.


I places all my xml in folder /share-content/ .htaccess already inside but not working.


Could someone help me about .htaccess in that directory to allow fetching content please.


Many thanks in advance.


No comments:

Post a Comment