Error:
An unexpected error occurred. Please click Reload to try again.
Error:
An unexpected error occurred. Please click Reload to try again.
How to Block Facebook Access, But Allow the Facebook 'Like' But... - Knowledge Base - Palo Alto Networks

How to Block Facebook Access, But Allow the Facebook 'Like' Button or Plugin

34869
Created On 09/25/18 17:19 PM - Last Modified 06/13/23 23:17 PM


Resolution


Overview

Access to Facebook needs to be blocked. However, many sites have Facebook plugin or like button, and restricting Facebook results in a URL or app block response page. For example:

fburlblock.JPG

appblock.JPG

The required behavior is to allow the Facebook plugin, so that the other sites are allowed to display properly.

Details

Create a rule on top to allow the application, 'facebook-social-plugin'. There is no need to apply an URL filtering profile to this rule if all sites need to be allowed.

fb-rule.JPG

When the web browser tries to load any page which includes the facebook-social-plugin, the Palo Alto Networks firewall will match this rule and allow the proper display of the entire page. This will display the plugin and page properly as seen in the example below:

properly.JPG

Access to Facebook will still be restricted with the URL filtering or app block rules.

owner: ukhapre



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClEmCAK&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language