Class WebRTCBlocker

java.lang.Object
org.eblocker.server.icap.transaction.processor.HtmlInjectionProcessor
org.eblocker.server.icap.transaction.processor.WebRTCBlocker
All Implemented Interfaces:
TransactionProcessor

public class WebRTCBlocker extends HtmlInjectionProcessor implements TransactionProcessor
This class aims to block WebRTC connections, because WebRTC leaks the IP address (the local network IP as well) to the public

The usual call to establish a connection is to the constructor: var pc = new RTCPeerConnection(x,y); But there are also instances you can just get from the window object: window.RTCPeerConnection, window.mozRTCPeerConnection,window.webkitRTCPeerConnection, window.msRTCPeerConnection These also have to be 'destroyed' = overwritten

This class extends InsertToolbarProcessor to inherit the methods to get and set the content of a Transaction object!

NOTE: Squid has to direct also the following Javascript mimetypes to the Icapserver to make this work:

acl html_response rep_mime_type text/javascript acl html_response rep_mime_type application/x-javascript acl html_response rep_mime_type application/javascript acl html_response rep_mime_type application/ecmascript acl html_response rep_mime_type text/ecmascript