Create a policy
Once you've reviewed script usage, create a policy to manage potentially problematic scripts on your site or app.
The Script Management API
Review these sections to create a policy using the API.
1. Create a policy
With problematic scripts identified, create a Script Management policy to apply to requests for a specific property hostname (domain) in your Ion property. To start, set one up so you can test it.
2. Go live with your policy
Once you've finished testing and you're ready to go live with your policy, you need to push it to the production network to actively manage scripts for end-user requests.
The Script Management dashboard
Review these sections to create a policy using Akamai Control Center.
1. Create a new policy
Use the Script Management dashboard to create a Script Management policy to apply to requests for a specific property hostname (domain) in your Ion property.
-
Search for Script Management in the Control Center search box.
-
Set the following options, depending on whether your site or app uses Property Manager or Delivery Manager.
Property Manager
- Group. Select the Group ID you used to create your Ion property.
- Property. Select your Ion property name.
- Hostname. Select the appropriate Property Hostname.
Delivery Manager
- Contract. Select the contract associated with your site or app.
- Workspace. Select the workspace you want to review.
- Environment. Select the environment that you want to review. For example, Production or Staging.
- Hostname. Select the appropriate hostname.
-
Click Go to editing.
-
Select the Analysis header in the table to sort High impact scripts to the top of the table. You can click an entry to review more details in the Information column.
-
Select Actions (...) for the entry and pick how you want to handle this script:
- Defer. This will postpone the script from loading until its associated page is reloaded. This prevents the script from rerunning.
- Block. This completely prevents the script from loading.
-
Make note of the following for use in testing:
- The name of the script.
- A page on your site where it's used.
-
Repeat steps 3-4 for the remaining High entries in the table.
Consider repeating this process for the Medium entries listed in the table, too. You should at least review them to see how they might be impacting your site.
-
You can optionally add Single Point of Failure Protection or an Override List to your policy.
-
Click Staging Analysis only.
-
Review your policy and click OK once you're satisfied.
-
Wait for activation to complete. This can take up to 15 minutes, but it typically finishes sooner. You'll get a Notification message in Control Center when the policy is complete.
2. Go live with your policy
Once you're happy with your policy after testing, go live with it to apply its settings to your public-facing site.
-
If necessary, access Control Center.
-
Search for Script Management in the Control Center search box.
-
Select the Group, the Property, and the Hostname you used to create your policy.
-
Set View Policy Active to Staging.
-
Click Go to editing.
-
Review your policy's settings. Make sure it's set up the way you want.
-
Click Production.
Now, you just need to wait for the activation to complete. You'll get another Notification message in Control Center when the policy is complete. At that point, your policy will be deferring or blocking scripts on the customer-facing site you're delivering through your Script Management property.
Updated 10 days ago
