Background:
Cloudflare is a good web service that provides CDN, Caching, HTML – JavaScript – CSS Minifying and security from DDOS attacks free of cost.
However, you must add your domain to Cloudflare to use this service.
Interaction is simple. At the top of your dashboard’s navigation bar, there is a prominent button called ‘Add Site’. Clicking it transfers you to the next page, where you can copy-paste your website’s URL.
If you are getting an error like ‘Invalid Domain’ while adding your website to Cloudflare, use this trick to bypass this error.
If you are copy-pasting the URL with the http suffix, then you will get an error:
// You will get error
http://yourdomain.com
Then you have to enter your domain without http or www, and It should look like this:
// Success
yourdomain.com
The ‘Invalid Domain’ error should be resolved by now.
I hope it helps.
Thanks & Regards
Mandar Apte