• Resolved elshorbagy

    (@elshorbagy)


    Hello,

    I registered with criticalcss to and added the API key to the plugin but I need to whitelist user-agent “criticalcss.com” first. I asked them how to do it but they never wrote back. Any idea how to do that?

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    sorry to hear you did no hear back from criticalcss support. I assume you need to whitelist because currently critical CSS is not working?

    typically the whitelisting needs to happen at a firewall level (which could be at host level, cloudflare or a security plugin, might be related to “bot blocking”), where all requests with criticalcss.com in the useragent must be permitted. if useragent-based whitelisting does not work, you can whitelist the following two ip-addresses instead;

    138.68.175.225
    159.65.84.28

    hope this helps,
    frank

    Thread Starter elshorbagy

    (@elshorbagy)

    Hi Frank,

    I tried to whitelist the ip address and it did not work. I would like to know how to whitelist the user-agent?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’m afraid I don’t really know elshorbagy ; where (in what screen/ app/ plugin/ …) did you try to whitelist the ip-addresses and how did it not work (error message)?

    Thread Starter elshorbagy

    (@elshorbagy)

    This is the message I received from criticalcss support. I asked them twice how to whitelist user-agent but I did not get an answer.

    I whitelisted the IPs but I’m still getting an error.

    The message:

    If possible it’s better to whitelist criticalcss.com via User-Agent instead of IP, as there will be new IPs added in the future.

    Our User-Agent string includes the text:
    criticalcss.com

    If you cannot make use of the User-Agent, the most likely IPs you will be hit by are:
    134.122.108.2
    138.68.175.225
    161.35.39.31

    Thread Starter elshorbagy

    (@elshorbagy)

    I got a message from my hosting support that they cannot whitelist the IPs because my website is on a shared host.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    But do they confirm they are blocking those IP’s to begin with?

    Thread Starter elshorbagy

    (@elshorbagy)

    No, they are not blocking those Ips

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    then whitelisting them is not needed either, at least not on host level.

    when examining your site I see you’re using Imperva which is a CDN which includes security features (web application firewall), it is likely the blocking is done at that level, can you (have someone) check that?

    Thread Starter elshorbagy

    (@elshorbagy)

    I deactivated your plugin and I tried criticalcss manually and it worked correctly. I guess the CDN is a part or your plugin.

    • This reply was modified 4 years, 3 months ago by elshorbagy.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Just saw API requests coming through as well, so AO is now active again and it seems to work now elshorbagy ?

    Thread Starter elshorbagy

    (@elshorbagy)

    Yes, it is working now.

    Thank you

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Whitelist user-agent “criticalcss.com” in WordPress website’ is closed to new replies.