Block Websites on Firefox browser on Mac devices
  • 13 Aug 2024
  • 1 Minute to read
  • PDF

Block Websites on Firefox browser on Mac devices

  • PDF

Article summary

The following Custom Payload help IT Admins to block websites on Firefox browser with exceptions. With this payload you can also lock the home page of the browser with any website.

  1. Copy the contents directly from below and add it in Custom Settings in the Device Profile or click here to download the file and import it in the Device Profile.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>PayloadContent</key>
    	<array>
    		<dict>
    			<key>EnterprisePoliciesEnabled</key>
    			<true/>
    			<key>PayloadDisplayName</key>
    			<string>Firefox</string>
    			<key>PayloadIdentifier</key>
    			<string>org.mozilla.firefox.780C4F59-C4F1-4D8F-93F2-FF598E4B88BD</string>
    			<key>PayloadType</key>
    			<string>org.mozilla.firefox</string>
    			<key>PayloadUUID</key>
    			<string>63E836CC-3626-4C83-8867-ABA96602B85D</string>
    			<key>PayloadVersion</key>
    			<integer>1</integer>
    			<!--Here you can lock the Homepage For any website, whenever you open Firefox browser the homepage will show below Website -->
    			<key>Homepage</key>
    			<dict>
    				<key>URL</key>
    				<string>enter website url</string>
    				<key>Locked</key>
    				<true/>
    				<key>StartPage</key>
    				<string>homepage</string>
    			</dict>
    				<key>WebsiteFilter</key>
    			<dict>
    				<key>Block</key>
    				<array>
    					<!--&lt;all_urls&gt; will block all the websites-->
    					<string>&lt;all_urls&gt;</string>
    				</array>
    				<key>Exceptions</key>
    				<array>
    					<!--Configure the exceptions that will be allowed-->
                        <string>*://*.example.com/*</string>
    					<string>https://www.example.com/*</string>
    					<string>https://www.example.com/*</string>
    				</array>
    			</dict>
    		</dict>
    	</array>
    	<key>PayloadDisplayName</key>
    	<string>Firefox payload</string>
    	<key>PayloadIdentifier</key>
    	<string>com.promobitech.scalefusion.AC0D30C2-C594-41BF-B4CB-CD1EF7A56746</string>
    	<key>PayloadType</key>
    	<string>Configuration</string>
    	<key>PayloadUUID</key>
    	<string>8B83A030-DB5C-4C00-8D97-425F0D6BFBB2</string>
    	<key>PayloadVersion</key>
    	<integer>1</integer>
    </dict>
    </plist>
  2. In the payload, please add the home page website URL, for example,

    <key>Homepage</key>
    			<dict>
    				<key>URL</key>
    				<string>https://scalefusion.com/</string>
    				<key>Locked</key>
    				<true/>
    				<key>StartPage</key>
    				<string>homepage</string>
  3. Please add the website exceptions (these websites that will be accessible), for example,

    <key>Exceptions</key>
    				<array>
    					<!--Configure the exceptions that will be allowed-->
                        <string>*://*.scalefusion.com/*</string>
    					<string>https://www.google.com/*</string>
    					<string>https://www.yahoo.com/*</string>
    				</array>
  4. Follow our guide on how to add the Custom Payload in the Device Profile & deploy it to devices.

Note:

  1. The Payload and its contents are sourced from various albeit authenticated Apple Developer communities and forums.

  2. Please validate them on a test machine before deploying them on all your managed devices.

  3. Scalefusion has tested these Payloads, however, Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the incorrect usage of these payloads.


Was this article helpful?