Feedback

Gecko Web Browser Privatsphäre

Sprache: C#

Hallo an alle, hier ein paar einfache Methoden um seine Privatsphäre im Gecko Browser zu schützen. Ist natürlich ausbaufähig aber mir reicht das bin ja kein Verbrecher ;-) [u]Ich verwende:[/u] GeckoFx 33.0 Xulrunner 33.1 [u]Usings:[/u] using.Gecko; [u]Sonstiges:[/u] - User Agent Strings findet ihr z.B. hier: www.useragentstring.com - Proxys gibts z.B. hier: www.proxy-listen.de Ps: Der Proxy sollte für meine Methode hier HTTP und HTTPS können.
        /// <summary>
        /// Überschreibt den User Agent
        /// </summary>
        /// <param name="UserAgent"></param>
        void setUserAgent(string UserAgent)
        {
            GeckoPreferences.User["general.useragent.override"] = UserAgent;
        }
        /// <summary>
        /// Setzt die Ip und den Port
        /// </summary>
        /// <param name="Ip"></param>
        /// <param name="Port"></param>
        void setProxy(string Ip, int Port)
        {
            GeckoPreferences.Default["network.proxy.type"] = 1;
            GeckoPreferences.Default["network.proxy.http"] = Ip;
            GeckoPreferences.Default["network.proxy.ssl"] = Ip;
            GeckoPreferences.Default["network.proxy.http_port"] = Port;
            GeckoPreferences.Default["network.proxy.ssl_port"] = Port;
        }
        /// <summary>
        /// Proxy zurücksetzen (fals es jemand braucht)
        /// </summary>
        void unsetProxy()
        {
            GeckoPreferences.Default["network.proxy.type"] = 0;
        }
        /// <summary>
        /// Überschreibt den User Agent
        /// </summary>
        /// <param name="UserAgent"></param>
        void setUserAgent(string UserAgent)
        {
            GeckoPreferences.User["general.useragent.override"] = UserAgent;
        }
        /// <summary>
        /// Setzt die Ip und den Port
        /// </summary>
        /// <param name="Ip"></param>
        /// <param name="Port"></param>
        void setProxy(string Ip, int Port)
        {
            GeckoPreferences.Default["network.proxy.type"] = 1;
            GeckoPreferences.Default["network.proxy.http"] = Ip;
            GeckoPreferences.Default["network.proxy.ssl"] = Ip;
            GeckoPreferences.Default["network.proxy.http_port"] = Port;
            GeckoPreferences.Default["network.proxy.ssl_port"] = Port;
        }
        /// <summary>
        /// Proxy zurücksetzen (fals es jemand braucht)
        /// </summary>
        void unsetProxy()
        {
            GeckoPreferences.Default["network.proxy.type"] = 0;
        }