Am Just Curious,
What are the privileges of adding cloudfare to your custom domain hosted on infinity free?
Full DNS Zone Access
More security
Firewall / WAF
Logging
+More
6 Likes
You can remove the ?i=1 from the URL as well.
7 Likes
You can also do that using Javascript. It’s only a bit more complicated than using Cloudflare but I think it’s a good option for those who can’t.
const request = location.href;
if(/[?|&]i=?[1-3]/.test(request)) {
const url = request.replace(/[?|&]i=?[1-3]/, "");
history.replaceState({}, "", url);
}
This is only cosmetic so the parameter is still there but it was just rewritten.
With less code:
const r = location.href, u = r.replace(/[?|&]i=?[1-3]/, "");
(/[?|&]i=?[1-3]/.test(r)) && (history.replaceState({}, "", u);
6 Likes
This topic was automatically closed after 14 days. New replies are no longer allowed.