Create Your Free Test Account Try our features with a no commitment test account.
Executive Summary
EdgeRules gives you instant control over how your content is delivered. You can customize your asset delivery, security measures, SEO and mobile experience.
Start With a Recipe
We have pre-made recipes for the most common EdgeRule uses. However, for more custom results, you can create your own recipes with just one click.
Optimize Your Origin Server
Reduce the number of calls made to your origin server when you block requests, create custom redirects, manipulate headers or more.
Go Mobile
Create separate caches, one for mobile devices and another for desktops. This smart way of delivering content ensures the best experience for your users on any device.
Create Your Free Test Account Try our features with a no commitment test account.
Technical Details
You can create 100% custom EdgeRules or use and modify the other recipes shown here. You can use the following options which are laid out in a simple user friendly format:
Some applications add this header to all HTTP responses and it often contains the application name and version which can be a security risk. This recipe allows you to hide it.
Match Type Default
Features HIDE HEADER X-Powered-By
Amazon S3 by default adds lots of useless to the user HTTP headers. You can remove them to minimize the transferred data.
Match Type Default
Features HIDE HEADER x-amz-id-2
HIDE HEADER x-amz-meta-s3fox-filesize
HIDE HEADER x-amz-meta-s3fox-modifiedtime
HIDE HEADER x-amz-request-id
X-XSS-Protection is a HTTP header understood by Internet Explorer 8 (and newer versions). This header lets domains toggle on and off the “XSS Filter” of IE8, which prevents some categories of XSS attacks.
Match Type Default
Features ADD HEADER X-XSS-Protection "1; mode=block"
This will allow the customer to block certain Countries. In this example we will return a 403 when a visitor is coming from China (CN).
Match Type Default
Features if ( $geoip_city_country_code = CN ) {
STATUS CODE 403
}
To improve your SEO scores you can redirect all bots that hit the CDN to your origin.
Match Type Exact
Features if ( $http_user_agent ~* ~(crawl|Googlebot|Slurp|spider| bingbot|tracker|click|parser|spider) ) {
REWRITE RULE ^ http://static.origin.com$request_uri permanent
}
You can use this recipe to disallow bots to index different parts of your website. A flexible alternative to robots.txt file.
Match Type Regex
Location \.(?:pdf|htm?l|png|jpe?g|gif)$
Features ADD HEADER X-Robots-Tag "noindex"
ADD HEADER X-Robots-Tag "googlebot: nofollow"
Cross-Origin resource sharing allows other websites to request content from your domain using JavaScript or CSS. Required for web fonts to work.
Match Type Regex
Location \.(ttf|ttc|otf|eot|woff|font.css|css)$
Features ADD HEADER Access-Control-Allow-Origin "*"
This recipe allows you to hide the Server header from all HTTP responses.
Match Type Default
Features HIDE HEADER Server
Forces the use of HTTPS connections. All HTTP requests will be redirected to HTTPS.
Match Type Default Location /example.html
Features if ( $scheme = http ) {
REWRITE RULE ^ https://$http_host$request_uri permanent
}
This header can be used to indicate whether or not a browser should be allowed to render a page in a <frame> or <iframe>
Match Type Default
Features ADD HEADER X-Frame-Options SAMEORIGIN
ADD HEADER X-Frame-Options DENY
ADD HEADER X-Frame-Options "ALLOW-FROM $uri"
You can redirect all users that come from a specific website. This rule can be used to ban websites that steal bandwidth or show different content from visitors from other websites.
Match Type Exact
Location /example.html
Features if ( $http_referer ~ http://domain.com ) {
REWRITE RULE ^ https://example.com/banned.html permanent
}
This will allow the customer to redirect certain Countries. In this example we will redirect users from the United States and United Kingdom to an English version of the website they are visiting.
Match Type Default
Features if ( $geoip_city_country_code ~* (US|UK) ) {
REWRITE RULE ^ https://english.$http_host$request_uri$1 permanent
}
Allows you to specify the original domain that should be attributed with the SEO score instead of the CDN accelerated one.
Match Type Regex
Location \.(?:pdf|htm?l|png|jpe?g|gif)$
Features ADD HEADER
More MaxCDN Features
Create Your Free Test Account:
[email protected]
|
Chat
|
+1 (877) 629-2361
Try StackPath SecureCDN
Unlimited Bandwidth
You can use as much bandwidth as you need.
All Features
The trial comes with all available features enabled.
Flexible Trial Length
Testing time is negotiable.
1-on-1 Setup Call
We help you get set up with a 1-on-1 integration call.
Live Chat
Available 24/7
We're here to answer your questions. From the simple to the hard. Just ask us!
Reach out to us at any time
Give us a call: +1 (877) 629-2361
Send us a Message
Or contact us directly at [email protected]
Talk to us
Available 24/7
Want to speak to someone? We're here 24/7 to answer any questions. Just call!
+1 (877) 629-2361
NetDNA is now MaxCDN
Same (but bigger) staff. Same obsession with speed.
This change allows us to offer:
More POPs & Network Features
More Realtime Controls
Faster Support
Search Results