Infinite Redirection in Browsers
This is an experiment which I carried out using URL shortening service rebrand.ly.
Created a new link which was pointing to itself. Something as shown below.
After creating this link (https://rebrand.ly/redirecting1) in Firefox (61.0.1) browser and then opened the link. Following message was thrown in the browser window.
Then checked the statistics of the click. It made 22 redirections before showing the above error message.
So now it was clear that Firefox makes 22 redirections before blocking the request.
So I repeated the same experiment with Google Chrome browser( 67.0.3396.99)
Created a new link and opened it in chrome browser. It threw the following error message in the browser.
And following were the click statistics.
Here from the above two images you can see that on first try it redirected 48 times. But during the second try it made 41 redirections.
Firefox had a redirection limit of 22 and it was behaving that way consistently. But Chrome made inconsistent number of redirections. Maybe the redirection limit in chrome is based on time and not on the number.
If you have any idea on how redirection limit works in Chrome, do let me know.