How to Whitelist a Domain: A Comprehensive Guide

Ensuring that your domain or specific subdomains are whitelisted is crucial for maintaining a secure and functional web environment. This guide will walk you through the steps to whitelist a domain like redirects.rapid301.com in various contexts, whether you're managing a web application firewall, server, or other infrastructure components.

1. Web Application Firewall (WAF)

If your website or application is protected by a Web Application Firewall (WAF), you'll need to whitelist the domain within the WAF configuration to allow traffic.

Steps:

  1. Access WAF Management Console: Log in to your WAF provider’s dashboard (e.g., Cloudflare, AWS WAF).
  2. Navigate to Whitelisting Rules: Look for a section like "Access Control" or "Firewall Rules."
  3. Add a Whitelist Rule: Create a rule to allow traffic from redirects.rapid301.com.
  4. Save and Apply Changes: Ensure the new rule is saved and activated.

2. Server Configuration

If you're managing the server where your application is hosted, you might need to adjust server settings such as .htaccess for Apache or configuration files for Nginx.

Apache (.htaccess):

  1. Open the .htaccess file on your server.
  2. Add the following rule:

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{HTTP_REFERER} !^https?://(www\.)?redirects\.rapid301\.com [NC]
 RewriteRule .* - [F,L]
</IfModule>

3. Save the file and restart the Apache server.

Nginx:

  1. Open the Nginx configuration file.
  2. Add the following within the server block:

server {
 # other configurations...

 if ($http_referer !~* "^https?://(www\.)?redirects\.rapid301\.com") {
   return 403;
 }

 # other configurations...
}

3. Save the file and restart Nginx.

3. Content Security Policy (CSP)

If your site implements a Content Security Policy (CSP), you may need to update it to permit resources from the domain.

Steps:

  1. Locate the CSP Settings: This could be in your server configuration, .htaccess file, or directly in your HTML headers.
  2. Add the Domain: Modify the Content-Security-Policy header to include the domain:

Content-Security-Policy: default-src 'self'; connect-src 'self' https://redirects.rapid301.com;

3. Save Changes: Ensure the changes are reflected in the CSP, and test the setup.

4. Firewall or Security Software

If your environment is protected by a network or endpoint firewall, you’ll need to whitelist the domain there.

Steps:

  1. Access the Firewall Settings: Log in to your firewall or security software.
  2. Add a Whitelist Entry: Locate the section for whitelisting or allowed domains, and add redirects.rapid301.com.
  3. Apply and Save Changes: Ensure the changes are applied to allow traffic.

5. DNS Configuration

Sometimes, whitelisting involves adding DNS records to direct traffic appropriately.

Steps:

  1. Access DNS Management: Log in to your DNS provider.
  2. Add DNS Records: Create an A record or CNAME pointing to redirects.rapid301.com if applicable.
  3. Save Changes: Make sure the DNS records are saved and propagated.

6. API Gateway

If you're using an API Gateway, such as AWS API Gateway, you might need to update the CORS settings to whitelist the domain.

Steps:

  1. Access API Gateway Console: Log in to your API Gateway management console.
  2. Update CORS Settings: Add https://redirects.rapid301.com to the list of allowed origins.
  3. Deploy the API: Ensure the changes are deployed and active.

7. Content Delivery Network (CDN)

If you're utilizing a CDN, you might need to configure domain whitelisting in the CDN settings.

Steps:

  1. Access CDN Dashboard: Log in to your CDN provider (e.g., Cloudflare, Akamai).
  2. Configure Domain Whitelisting: Add redirects.rapid301.com to the list of allowed domains or referrers.
  3. Save and Apply: Ensure the settings are applied and propagated across the CDN.

For automated redirects, you need to ensure your tool has access to crawl the site and gather URLs. Whitelisting redirects.rapid301.com in the contexts mentioned above will allow the tool to function properly, enabling it to assist in setting up redirects automatically.

Creating your 301 redirect files! 🚀

RouteRaccoon is scanning your sites and preparing your files. You'll receive an email shortly!

Close

Copy, edit and hide this code block