Question: Larapos And Allow Url Fopen

Larapos And Allow Url Fopen

Hi, my web host views allow_url_fopen as a security risk. I am unable to install the system. Is there a way around this? If so, what features might I be missing out on?

BM

Brian Moore

Asked

Hi, my web host views allow_url_fopen as a security risk. I am unable to install the system. Is there a way around this? If so, what features might I be missing out on?

  • MS

    Mian Saleem

    Answered

    Hello,

    allow_url_fopen should be on if you wish to use download sale as dompdf requires this.

    As I know most shared hosting providers, like Site5, Godaddy, SiteGround and many more allow users to manage their PHP versions and config.

    We recommend VPS from any cloud provider AWS, DigitalOcean, Linode & Vultr etc. If you like managed service, then you can check Cloudways otherwise Laravel Forge or Ploi.

    Thank you

  • BM

    Brian Moore

    Answered

    Sadly I’m not interested in changing hosts. Based on dompdf’s git you have the option of using either allow_url_fopen set to true or the curl PHP extension (for retrieving stylesheets, images, etc via http). I would like to see a more secure way of downloading information from your system.

  • MS

    Mian Saleem

    Answered

    Hello,

    The dompdf requirements page has the details.

    I am not aware that dompdf can render HTML code with links using curl. If you have any reference link, please share I will check in future updates.

    Thank you

  • Login to Reply