• Resolved jetxpert

    (@jetxpert)


    Hi there,

    Great plugin. However, recommended updating your plugin to add the following “Button Action” options:

    – “No opener link”
    – “No referrer link”

    Click here for details.

    Above will ensure websites using your plugin are safe.

    In the interim, if there’s a PHP or JS code (snippet) we can use to accomplish this, please let us know.

    Cheers!
    _______________________

    Reference: Links to cross-origin destinations are unsafe

    • This topic was modified 4 years, 6 months ago by jetxpert.
    • This topic was modified 4 years, 6 months ago by James Huff.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jetxpert

    (@jetxpert)

    Errata:

    * … However, I would like to recommend updating your plugin to add the following “Button Action” options: …

    Thread Starter jetxpert

    (@jetxpert)

    Temporary Solution:

    Found a temporary solution for this issue. Tested. Works great.

    Add the following JavaScript code to your theme’s code field section, titled “Space before </body)“:

    <script type="text/javascript">
        window.onload = function() {
            var alinks = document.getElementsByClassName("wpfront-button");
            for (var i = 0; i < alinks.length; i++) {
                alinks[i].setAttribute("title", "Click for Information");
                alinks[i].setAttribute("target", "_blank"); 
                alinks[i].setAttribute("rel", "noopener noreferrer nofollow"); 
            }
        }
    </script>

    Legend:

    “title”= This attribute adds a tooltip to the button or link you create. In the above case, “Click for Information” applies to our website but you can change it to whatever applies to you.

    “target”= This attribute can be either “_blank” (open link in new tab or window) or “_self” (open link in same window).

    “rel”= This attribute, when properly defined, will meet Google’s security recommendation (see reference link I posted above) by adding “noopener noreferrer” and will also make sure SEO bots will not post your link in search results by adding “nofollow”

    Plugin Author: Please update your plugin per original post.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Potential Security Issue | URL Links’ is closed to new replies.