Can we set max redirect numbers in GET?



  • My parser sometimes stucks in infinity loop when hits broken site, for example

    https://foxautodriving.com/wp-admin/setup-config.php?step=0
    

    Is there work around for this? Example set max redirect numbers in GET or somehow detect / in end url and remove it



  • Then just add URL to a list, random an element. Set a check variable, if check = 3 then just break, go to the next element.



  • @JinMVP thats already thing i did if check = 5 to break but in case like this URL which i post BAS keeps follow redirect and redirect never ends


Log in to reply