Title: Curl useragent
Last modified: February 14, 2022

---

# Curl useragent

 *  Resolved [pim87](https://wordpress.org/support/users/pim87/)
 * (@pim87)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/)
 * 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](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15363342)
 * Hello [@pim87](https://wordpress.org/support/users/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](https://wordpress.org/support/users/pim87/)
 * (@pim87)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15363362)
 * 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](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15363541)
 * [@pim87](https://wordpress.org/support/users/pim87/) Why is via .htaccess mode
   not supported?
 *  Thread Starter [pim87](https://wordpress.org/support/users/pim87/)
 * (@pim87)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15363642)
 * 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](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15364465)
 * [@pim87](https://wordpress.org/support/users/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](https://wordpress.org/support/users/pim87/)
 * (@pim87)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15367625)
 * [@mateuszgbiorczyk](https://wordpress.org/support/users/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](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15367661)
 * [@pim87](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/webp-converter-for-media/assets/icon-256x256.png?rev=2636288)
 * [Converter for Media - Optimize images | Convert WebP & AVIF](https://wordpress.org/plugins/webp-converter-for-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-converter-for-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-converter-for-media/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-converter-for-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-converter-for-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-converter-for-media/reviews/)

## Tags

 * [curl](https://wordpress.org/support/topic-tag/curl/)

 * 7 replies
 * 2 participants
 * Last reply from: [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/curl-useragent/#post-15367661)
 * Status: resolved