ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
    • DDoSX®
      • Setting up DDoSX®, CDN and WAF using SafeDNS
      • Setting up DDoSX®, CDN and WAF using an ALIAS, ANAME or CNAME
      • Access Controls
      • WAF on DDoSX settings
      • Testing your domain on DDoSX
      • Removing a domain from DDoSX®
      • General information / FAQs
      • Troubleshooting
      • IP Ranges
      • TLS1.0 and TLS1.1 disabled on DDoSX®
      • Global Restrictions
      • DDoSX® HTTP Request and Response Headers
      • Custom Error Pages
    • Web Application Firewall
    • Threat Monitoring and Threat Response
    • McAfee Antivirus
    • Vulnerability Scans
    • ANS MDR
    • Keeping Magento secure
    • Keeping WordPress secure
    • Brute Force Attacks
    • CryptoLocker
    • Dirty COW
    • The Logjam attack
    • Meltdown and Spectre
    • Memcached security concerns and reflection/amplification DDoS attacks
    • Wana Decryptor / Wana Decrypt0r 2.0 / WannaCry
    • Log4J Vulnerability
    • Polkit Security Vulnerability CVE-2021-4034
    • CVE-2022-0847 - Dirty Pipe Vulnerability
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Security >
  • DDoSX® >
  • Testing your domain on DDoSX

Testing your domain on DDoSX¶

Before using DDoSX it is strongly recommended that you test your web site first. This will help to find issues that might have affected your users if you went live with DDoSX straight away.

Linux¶

Edit the file /etc/hosts to include your domain and subdomains and point these to the IP that has been assigned to your protected domain.

Firstly open up the Terminal and then edit the file using your file editor of choice

sudo vi /etc/hosts

Enter your DDoSX IP example.org www.example.org at the bottom of the file then save the file. You can now browse example.org and www.example.org and you will view the website as you would through ddosx.

Note

If you currently have AAAA record for your domain or subdomains you will also need to put the DDoSX IPv6 address into your /etc/hosts file as well as your IPv4 address to ensure your IPv6 connection goes through DDoSX as well.

Note

If don’t have the sudo command you can also run su - first and enter your root password before editing /etc/hosts with the vi command as per:

su -
Password: ********
vi /etc/hosts

Alternatively if you don’t have root access you can use the curl command for example:

IPv4:

curl -H "Host: example.org" https://<replace_with_ddosx_ip>/ -k

IPv6:

curl -H "Host: example.org" https://<replace_with_ipv6_ddosx_ip>/ -gk

However this will return the site in plain HTML and might not give you a true representative of what your site looks like through DDoSX compared to loading it via your web browser.

macOS¶

You need to open up the Terminal app and then run the command

sudo nano /private/etc/hosts

Enter your DDoSX IP example.org www.example.org at the bottom of the file then save the file. You can now browse example.org and www.example.org and you will view the website as you would through DDoSX.

Note

If you currently have a AAAA record for your domain or subdomains you will also need to put the IPv6 address into your /private/etc/hosts file to ensure your IPv6 connection goes through DDoSX as well.

Windows 7/8/10¶

  • Right click on Notepad and click Run As Administrator

  • Select File > Open

  • Browser to C:\Windows\System32\drivers\etc

  • At the bottom right change the file type to All Files

  • Open the file called hosts

  • Edit this file by adding your DDoSX IP example.org www.example.org and save. For example:

1.2.3.4 example.org www.example.org

Note

You may need to run ipconfig /flushdns after making this changed before browsing the website.

Note

If you currently have a AAAA record for your domain or subdomains you will also need to put the IPv6 address into your /private/etc/hosts file to ensure your IPv6 connection goes through DDoSX as well.

Next Article > Removing a domain from DDoSX®

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ