Support » Plugin: All In One WP Security & Firewall » htaccess security rules blocking LinkedIn sharing

Viewing 6 replies - 1 through 6 (of 6 total)
  • Luckily, I was able to guess which part is causing LinkedIn sharing to not work:

    # 5G:[USER AGENTS]
    <IfModule mod_setenvif.c>
    # SetEnvIfNoCase User-Agent ^$ keep_out
    SetEnvIfNoCase User-Agent (binlar|casper|cmsworldmap|comodo|diavol|dotbot|feedfinder|flicky|ia_archiver|jakarta|kmccrew|nutch|planetwork|purebot|pycurl|skygrid|sucker|turnit|vikspider|zmeu) keep_out
    <limit GET POST PUT>
    Order Allow,Deny
    Allow from all
    Deny from env=keep_out
    </limit>
    </IfModule>

    Not sure which bot blocks LinkedIn, but commenting out this entire portion makes LinkedIn sharing work again.

    Seems that this might be a bug.

    Plugin Author wpsolutions

    (@wpsolutions)

    No it’s not a bug.

    What is the “linkedIn” plugin you are using called?

    When implementing security directives using .htaccess there is not really a “one size fits all”.
    Individual sites might have slightly different setups or they may be using different plugins which sometimes get caught in the security net.

    Before tweaking or changing any of the rules we always ensure that we aren’t opening a hole for the rest of the users in order to satisfy a few who are having specific blockages.

    For now I would suggest you leave 5G blacklist rules disabled and we will investigate if the rules can be modified.

    This site has Jetpack enabled, and using social sharing buttons that come with it. I tried testing with a regular linkedin sharing button, which was doing the same thing.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hello @viktorix I have being running this plugin on one of my sites that also uses a social media plugin. My Linkedin has been working well with this plugin since I installed it a few weeks ago.

    I know for a fact that even though Jetpack is a very powerful plugin and it has a lot to offer, it also causes some issues for many with other plugins. In some cases some of the tools that Jetpack offers can not be implemented.

    I just thought of sharing.

    Kind regards

    Hello, Anybody still looking for a solution to this problem I might have a solution for you. Linkedin bot, http://www.botopedia.org/user-agent-list/social-media-agents/linkedin-bot.html is a Jakarta Commons-HttpClient, therefore if you remove the jakarta block in your code linkedin should work perfectly.

    Your Current Code:

    # 5G:[USER AGENTS]
    <IfModule mod_setenvif.c>
    # SetEnvIfNoCase User-Agent ^$ keep_out
    SetEnvIfNoCase User-Agent (binlar|casper|cmsworldmap|comodo|diavol|dotbot|feedfinder|flicky|ia_archiver|jakarta|kmccrew|nutch|planetwork|purebot|pycurl|skygrid|sucker|turnit|vikspider|zmeu) keep_out
    <limit GET POST PUT>
    Order Allow,Deny
    Allow from all
    Deny from env=keep_out
    </limit>
    </IfModule>

    The revised code:

    # 5G:[USER AGENTS]
    <IfModule mod_setenvif.c>
    # SetEnvIfNoCase User-Agent ^$ keep_out
    SetEnvIfNoCase User-Agent (binlar|casper|cmsworldmap|comodo|diavol|dotbot|feedfinder|flicky|ia_archiver|kmccrew|nutch|planetwork|purebot|pycurl|skygrid|sucker|turnit|vikspider|zmeu) keep_out
    <limit GET POST PUT>
    Order Allow,Deny
    Allow from all
    Deny from env=keep_out
    </limit>
    </IfModule>

    Hope this helps.

    Other version of this in your htacces could be the following
    SetEnvIfNoCase User-Agent “Jakarta Commons” keep_out

    Just comment it out or delete it.

    That Botpedia is a great resource GraphanixDziner! I’ve not run into it before. Thanks for sharing!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘htaccess security rules blocking LinkedIn sharing’ is closed to new replies.