<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Internetzugang blocken?]]></title><description><![CDATA[<p>Hi,</p>
<p>meine Schwester ist viel zu viel im Netz, weswegen ich beauftragt wurde, ein Programm zu Schreiben, welches nur zeitlich begrenzten Internetzugang ermöglicht.</p>
<p>Hat jemand eine Idee, wie ich den Internetzugang blocken könnte? Betriebssystem ist Windows XP.</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/189326/internetzugang-blocken</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 22:20:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/189326.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Aug 2007 11:55:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Internetzugang blocken? on Sat, 11 Aug 2007 11:55:08 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>meine Schwester ist viel zu viel im Netz, weswegen ich beauftragt wurde, ein Programm zu Schreiben, welches nur zeitlich begrenzten Internetzugang ermöglicht.</p>
<p>Hat jemand eine Idee, wie ich den Internetzugang blocken könnte? Betriebssystem ist Windows XP.</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342665</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342665</guid><dc:creator><![CDATA[m_]]></dc:creator><pubDate>Sat, 11 Aug 2007 11:55:08 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sat, 11 Aug 2007 12:03:50 GMT]]></title><description><![CDATA[<p>Ist nen Router dazwischen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Drück auf den Knopf davon ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342671</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sat, 11 Aug 2007 12:03:50 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sat, 11 Aug 2007 12:24:42 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">INTERFACE_HANDLE hInterface;
	// Creating the interface and associating it with 
	// a local ip address INTERFACE_HANDLE hInterface;
	PfCreateInterface(0, 
              PF_ACTION_DROP,
              PF_ACTION_DROP, 
              FALSE, 
              TRUE, 
              &amp;hInterface); 

	// look this byte order for ip address!!
	BYTE localIp[]    = {0,0,0,0}; //Hier am besten die IP Adresse von dem Netzweradapter der zum Router führt
	PfBindInterfaceToIPAddress(hInterface, PF_IPV4, localIp);

	// We go to add a filter. Forbid outgoing http traffic, for example.
	FILTER_HANDLE fHandle;

	// Fill the filter rule data
	PF_FILTER_DESCRIPTOR inFilter;
	inFilter.dwFilterFlags       = FD_FLAGS_NOSYN;    //always this value
	inFilter.dwRule              = 0;        //always this value
	inFilter.pfatType            = PF_IPV4;    //using ipV4 addresses
	inFilter.SrcAddr             = localIp;    //set local ip
	inFilter.SrcMask             = (PBYTE)&quot;\xff\xff\xff\xff&quot;;   //mask for local ip
	inFilter.wSrcPort            = FILTER_TCPUDP_PORT_ANY;  //any source port
	inFilter.wSrcPortHighRange   = FILTER_TCPUDP_PORT_ANY;
	inFilter.DstAddr             = 0;            //any destination
	inFilter.DstMask             = 0;
	inFilter.dwProtocol          = FILTER_PROTO_TCP;    // Tcp protocol

	// Add the filter
	PfAddFiltersToInterface(hInterface, 1, &amp;inFilter, 0, NULL, &amp;fHandle);

	// Remove the filter
	PfRemoveFilterHandles(hInterface, 1, &amp;fHandle);

	// Unbind and delete interface
	PfUnBindInterface(hInterface);
	PfDeleteInterface(hInterface);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1342683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342683</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Sat, 11 Aug 2007 12:24:42 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sat, 11 Aug 2007 16:18:28 GMT]]></title><description><![CDATA[<p>Bei mir wird da nichts geblockt, wenn ich unter localIP meine IP<br />
(192.168.109.19) eintrag <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Den anderen Thread den es hier dazu mit einer funktionierenden Lösung mal<br />
gab findet man nicht mehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342793</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342793</guid><dc:creator><![CDATA[Testus]]></dc:creator><pubDate>Sat, 11 Aug 2007 16:18:28 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sat, 11 Aug 2007 16:20:54 GMT]]></title><description><![CDATA[<p>Also bei mir klappts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>//Edit</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-185831-and-highlight-is-pfcreateinterface.html" rel="nofollow">Klick</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1342795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1342795</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Sat, 11 Aug 2007 16:20:54 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sun, 12 Aug 2007 13:47:41 GMT]]></title><description><![CDATA[<p>Ich poste hier einfach mal den Abschnitt, der bei mir funktioniert:</p>
<pre><code class="language-cpp">INTERFACE_HANDLE interfaceHandle;
FILTER_HANDLE filterHandle;

	PF_FILTER_DESCRIPTOR filter;

	PfCreateInterface(0, PF_ACTION_FORWARD, PF_ACTION_FORWARD, FALSE, TRUE, &amp;interfaceHandle); 

	unsigned long myIp = LongToIp(&quot;192.168.0.5&quot;);

	PBYTE localIp = (PBYTE)&amp;myIp;

	PfBindInterfaceToIPAddress(interfaceHandle, PF_IPV4, localIp);

	filter.dwFilterFlags       = FD_FLAGS_NOSYN;
	filter.dwRule              = 0;
	filter.pfatType            = PF_IPV4;
	filter.wSrcPort            = FILTER_TCPUDP_PORT_ANY;
	filter.wSrcPortHighRange   = FILTER_TCPUDP_PORT_ANY;
	filter.wDstPort            = FILTER_TCPUDP_PORT_ANY;
	filter.wDstPortHighRange   = FILTER_TCPUDP_PORT_ANY;
	filter.fLateBound		   = 0;
	filter.dwProtocol          = FILTER_PROTO_ANY;

	unsigned long destinationIp = LongToIp(&quot;0.0.0.0&quot;);

	filter.DstAddr = (PBYTE)&amp;destinationIp;
	filter.DstMask = (PBYTE)&amp;destinationIp;

	in_addr inAddr;
	inAddr.S_un.S_un_b.s_b1 = ipByte1;
	inAddr.S_un.S_un_b.s_b2 = ipByte2;
	inAddr.S_un.S_un_b.s_b3 = ipByte3;
	inAddr.S_un.S_un_b.s_b4 = ipByte4;

	unsigned long sourceIp = LongToIp(inet_ntoa(inAddr));

	filter.SrcAddr = (PBYTE)&amp;sourceIp;
	filter.SrcMask = (PBYTE)&amp;sourceIp;

	PfAddFiltersToInterface(interfaceHandle, 1, &amp;filter, 1, &amp;filter, &amp;filterHandle);

// blabla

	PfRemoveFilterHandles(interfaceHandle, 1, &amp;filterHandle);
	PfUnBindInterface(interfaceHandle);
	PfDeleteInterface(interfaceHandle);
</code></pre>
<p>Musst natürlich einiges anpassen.<br />
MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1343170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1343170</guid><dc:creator><![CDATA[ceplusplus@loggedoff]]></dc:creator><pubDate>Sun, 12 Aug 2007 13:47:41 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sun, 12 Aug 2007 14:03:08 GMT]]></title><description><![CDATA[<p>kann man nicht automatisch die ip-adresse von diesem Computer ermitteln?<br />
Also zum beispiel per ping oder so...<br />
war nurn vorschlag.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1343180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1343180</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Sun, 12 Aug 2007 14:03:08 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sun, 12 Aug 2007 17:01:43 GMT]]></title><description><![CDATA[<p>Script-Styler, halt dich raus, das nichts mit der Frage hier zu tun.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1343246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1343246</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Sun, 12 Aug 2007 17:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to Internetzugang blocken? on Sun, 12 Aug 2007 17:09:27 GMT]]></title><description><![CDATA[<p>Ok, funktioniert. Script go away....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1343251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1343251</guid><dc:creator><![CDATA[nokiddy]]></dc:creator><pubDate>Sun, 12 Aug 2007 17:09:27 GMT</pubDate></item></channel></rss>