• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Disabled external URL's / HTTP request failed!

SantiagoA

New Pleskian
Hi!,

I use Parallels Plesk Panel v11.0.9_build110120608.16 os_CentOS 6 on a Dedicated server, I'm the root, and I can change all parameters of the server.

I'm trying to use this php command: readfile('http://www.domain.com');

The external url's are bloqued or disabled, every time I've this warning: PHP Warning: readfile(http://www.domain.com): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found, referer: http://www.domain.com

- The allow_url_fopen parameter is on (I check it with phpinfo() )
- I tried to unblock the firewall ports 80 / 8080 incoming and outgoing calls
- I tried to allow hotlinks with .htacess
- I tried to set ON allow_url_include

Please, what can be the problem?

Thanks!
 
Important date!!

de readfile() command in php don't read URL's on the same server, with the same IP.... If I put a readfile with other external URL works fine

How can I open the read from a domain of the server, to other domain of the same server with the same IP????
Thanks!
 
Back
Top