Is there a way to have Fiddler not update the FiddlerScript rules file (CustomRules.js) in case the file contains any errors?
I use Fiddler to block some traffic, but in case the rules file contains even a small error, then Fiddler will drop all the rules inside the file and allow all traffic to pass.
The best solution would be to first check the validity of the file, and only update it in case it contains no error at all.
I woulnd't mind automating this through a Perl script, but I still need a way to interogate Fiddler over the validity of the file.
In case there is no easy way to do this, my only option would be to write a Perl script that will initiate a web connection that is supposed to be blocked by Fiddler. In case it is not blocked, I can only assume the rules file I had just updated right before initiating the connection contains an error. In this case, the Perl script would kill Fiddler, replace the rules file with the previous version, and restart Fiddler. Everything should not take more than just a few seconds. This way, even if the file is not valid, Fiddler will continue to apply the rules (and block the traffic I need to filter out). My only problem with this solution is that it will take me some time to code it. I am looking for a more elegant, quicker way to do it.
Thank you,
Alex
I use Fiddler to block some traffic, but in case the rules file contains even a small error, then Fiddler will drop all the rules inside the file and allow all traffic to pass.
The best solution would be to first check the validity of the file, and only update it in case it contains no error at all.
I woulnd't mind automating this through a Perl script, but I still need a way to interogate Fiddler over the validity of the file.
In case there is no easy way to do this, my only option would be to write a Perl script that will initiate a web connection that is supposed to be blocked by Fiddler. In case it is not blocked, I can only assume the rules file I had just updated right before initiating the connection contains an error. In this case, the Perl script would kill Fiddler, replace the rules file with the previous version, and restart Fiddler. Everything should not take more than just a few seconds. This way, even if the file is not valid, Fiddler will continue to apply the rules (and block the traffic I need to filter out). My only problem with this solution is that it will take me some time to code it. I am looking for a more elegant, quicker way to do it.
Thank you,
Alex