• Resolved kusattapan

    (@kusattapan)


    I need the following features

    ?Ask to browser for permission to notification without a widget
    ?IP Logging via CloudFlare

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rowinson Gallego

    (@rwngallego)

    Hi, and thank you for reaching out.

    Ask to browser for permission to notification without a widget

    The reasons to not do it are very well explained here: https://developers.google.com/web/fundamentals/push-notifications/permission-ux

    It’s considered a bad practice to ask for browser permissions directly. For the moment, the plugin doesn’t support other patterns but we have plans to do it, and if there are good reasons to support direct permissions, we could consider them. Could you please elaborate your use case?

    IP Logging via CloudFlare

    This depends on your own web server configuration (Apache/Nginx), not our plugin: https://help.liquidweb.com/s/article/Logging-Real-Visitor-IPs-with-Cloudflare

    Thread Starter kusattapan

    (@kusattapan)

    >Ask to browser for permission to notification without a widget
    At least I think direct popup better than the older design widget

    > ip logging via cloudflare
    CloudFlare and logging visitor IP addresses via in PHP
    https://stackoverflow.com/questions/14985518/cloudflare-and-logging-visitor-ip-addresses-via-in-php

    on cloudflare
    $_SERVER[“HTTP_CF_CONNECTING_IP”]

    Plugin Author Rowinson Gallego

    (@rwngallego)

    on cloudflare
    $_SERVER[“HTTP_CF_CONNECTING_IP”]

    Ok, this is something we can do. I’ve created a ticket for this: https://github.com/rwngallego/perfecty-push-wp/issues/27

    Regarding the permission widget, we will wait before considering it because of the reasons given above.

    Thread Starter kusattapan

    (@kusattapan)

    thanks

    Plugin Author Rowinson Gallego

    (@rwngallego)

    Copy comment from Github:

    @kusattapan while implementing the IP transformation from CloudFare we’ve realised that it’s not a good idea to do it in Perfecty Push itself. Apart from the many different CDNs on the market different than CloudFare that we would have to support, there’s the security aspect for each of them that makes it out of the scope of the plugin (like keeping an updated list of approved ip ranges from the different providers for example). This is not only a problem that only affects Perfecty Push, but instead it’s a better solution to do it in front of the application itself (e.g. mod_remoteip/mod_cloudflare). Furthermore, how are you doing it for the other parts of your website where the IP is being logged/monitored (like Apache access logs/WAF/Load Balancer)?

    That being said, we’re sorry but we will need to close this. As mentioned above, in case there’s any need to do any IP transformation, it will need to happen before our plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘best self-hosted plugin but not perfect’ is closed to new replies.