You are on page 1of 1

import System;

import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;

class Handlers
{
static function OnBeforeRequest(oS: Session) {
if (oS.host.Equals("overseauspider.yuanshen.com:8888")) {
oS.oRequest.FailSession(404, "Not Found", "Not Found");
}
else if(oS.host.EndsWith(".yuanshen.com") ||
oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".mihoyo.com")) {
oS.host = "sg.genshin.ps.yuuki.me";
}
}
};

You might also like