Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In order to To inspect ( ChatGPT?) \Copilot interactions in real - time, you need have to redirect this their traffic from client’s client PC’s to AGAT proxy server.

...

Code Block
function FindProxyForURL(url, host) {
	
	var ignorelist = new Array();
	
	var proxylist = new Array(
		"*chatgpt.com",
		"*.openai.com",
		"*chatgpt*.webpubsub.azure.com",
		"*.oaiusercontent.com",
		"sydney.bing.com",
		"browser.events.data.microsoft.com",
		"substrate.office.com",
		"*.bingapis.com",
		"copilot.microsoft.com",
		"augloop.office.com",
		"gemini.google.com"

//		"*.clients6.google.com",
//		"*.googleusercontent.com",
//		"*.googletagmanager.com",
//		"*.googleapis.com"

			);
			
	// Check if need to ignore
	for (var i = 0; i < ignorelist.length; i++) {
		var value = ignorelist[i];
		if (dnsDomainIs(host, value)) {
			return "DIRECT";
		}
	}
	
	// Return our proxy name for matched domains/hosts
	for (var i = 0; i < proxylist.length; i++) {
		var value = proxylist[i];
		if (shExpMatch(host, value)) {
			return "PROXY <agat proxy server>:<port>10.0.0.34:80";
		}
	}

	return "DIRECT";
}

You need to configure line 29 with the ip/dns of AGAT proxy server, and the port the proxy service is listening onURL to AGAT PAC file: