• Resolved pim87

    (@pim87)


    First of all, thank you for developing the wonderfull plugin WebP Converter for Media!

    On a couple of websites I encountered an error with rewriting from .htaccess and Pass Tru wasn’t working so I contacted the hosting company and they solved it by making a few adjustments on their side (firewall whitelist for this specific domain). They said it wasn’t possible for them to provide this solution to all of their customers, they said the code below has to be added to the pass-tru requests for it to work out of the box on their hosting:

    curl_setopt( $ch, CURLOPT_USERAGENT, ‘Mozilla/5.0 (compatible; +WebP Converter for Media)’ );

    Is it possible to add this to the plugin so other customers of this hosting company can also enjoy your plugin?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @pim87,

    Thanks for your message.

    Which hosting company are you using? Are you currently using Pass Thru mode or via .htaccess mode?

    Best,
    Mateusz

    Thread Starter pim87

    (@pim87)

    I’m using a Dutch hosting company called mijndomein (mijndomein.nl). Currently I’m using the Pass Thru mode (which works after the changes made by the hosting company on domain level), the .htaccess mode is not supported at this hosting company.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @pim87 Why is via .htaccess mode not supported?

    Thread Starter pim87

    (@pim87)

    I’m not really sure, they just recommended to use the Pass Thru option which now works after they made some changes for this specific website. Just sent them an email why the .htaccess is not supported. Will post an update when I receive a reply from them.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @pim87 When it comes to changes in the plugin dedicated to only one hosting company, unfortunately I can’t do it. The plugin is used by over 100,000 people and I can’t do something for just one person – a plugin has to be universal by definition.

    Each such change means that I have to remember about it, test it when updating the plugin, and if I had such solutions in the plugin, it would lose more about 99.99% of users who will not benefit from it anyway.

    I hope that you understand me.

    Thread Starter pim87

    (@pim87)

    @mateuszgbiorczyk I totally understand. The hosting company removed the firewall whitelist and enabled the .htaccess mode after that, everything is fine now. Bit weird but I’m glad everything is working now.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @pim87 Thanks for the information and I’m glad everything works!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Curl useragent’ is closed to new replies.