Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

This can be achieved with a PAC file configured in each PC proxy settings, or integrated in the organization PAC file.

Here is the AGAT PAC file configuration and URL’s:

function FindProxyForURL(url, host) {
	
	var ignorelist = new Array();
	
	var proxylist = new Array(
		"*.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"
			);
			
	// 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>";
		}
	}

	return "DIRECT";
}

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

  • No labels