Hallo cp'ers,
Weet iemand hoe ik een bepaalde site kan blokeren zodat niemand die op mijn pc zit erop kan?
Sites
-
-
Guest, wil je besparen op je domeinnamen? (ad)
-
-
Die tools werken niet :p
-
Voor zulk soort dingen moet je helemaal geen troep installeren op je PC. Je kunt een record aan je hosts bestand toevoegen, het hosts bestand is (ongeveer) hier te vinden:
C:\Windows\System32\drivers\etc
Je voegt aan dit bestand een record toe, en vervolgens zal de opgegeven domeinnaam worden doorgesluisd naar het opgegeven adres, bijvoorbeeld:
127.0.0.1 google.nl
Zorgt ervoor dat google.nl wordt doorgelinkt naar je localhost.
Je kunt je hosts bestand zien als de eerste DNS waar je PC in kijkt, hierdoor kun je alle domeinnamen in dat bestand ergens anders naartoe adresseren.
-
Werkt niet
-
Natuurlijk werkt dat wel. Wat werkt er niet aan, misschien een goed begin om dat eens te vertellen?
-
@Killingdevil,
Moet je dan nog rebooten?
Lars
-
Gewoon hij redirect niet :p
-
@Killingdevil:
Bij mij ook niet, heb nu dit:PHP
Toon Meer# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost google.nl hyves.nl
Maar als ik naar hyves.nl, en ik doe F5/ control F5, dan laad ie gewoon de pagina van Hyves, en niet van Google...
Ik heb hem nog niet opnieuw opgestart.
Bedankt alvast,
Lars
P.S.
Ik heb Windows 7. -
En het host bestand werkt wel, daarmee kan je verder ook test domeinen maken voor je lokale websites.
-
Bij mij staat dat in de router, ik kan daar IP`s trefwoorden en zelfs alle .com sites blokken.
Even kijken ik heb ene netgear wireless N? -
@larsisgoed: Nee, je hoeft niet te rebooten.
Dat het zo niet werkt is logisch. Je kunt niet doorlinken naar een domeinnaam, je moet doorlinken naar een adres, een IP dus.
-
ik zet dit erbij maar werkt niet: 127.0.0.1 http://www.lexa.be
-
Lees...naar een IP
>,>
-
Citaat van larsisgoed9
@Killingdevil,
Moet je dan nog rebooten?
Lars
Alleen de cache legen
-
het lukt me niet hoor :p
-
Bboy, dan moet je alleen nog die http:// weghalen... Anders kan je er met https:// nog altijd opkomen, en volgens mij pakt windows dit nieteens... Hoe dan ook, je zult het dus zo moeten doen: 127.0.0.1 site.nl. Lees ook dit: Wikipedia: Hosts (file)
-
Bij mij werkt het nu.
Ik heb gewoon het IP gebruikt van google.nl.Dit is me bestand nu:
PHP
Toon Meer# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 74.125.77.147 hyves.nl 74.125.77.147 http://hyves.nl 74.125.77.147 www.hyves.nl 74.125.77.147 http://www.hyves.nl
En je moet voor alle acties een maken dus:
*site.nl
*http://site.nl
*http://www.site.nl
*http://www.site.nlDan werkt het 100%
Groetjes,
Lars
-
bij mij werkt het ook :p
Participate now!
Heb je nog geen account? Registreer je nu en word deel van onze community!