Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Colombo
YEYE 3 in 1 Instant Coffee Mix 50 Sachet
Romeshka
Updated:
Today at 12:16 AM
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Friday at 7:43 PM
NURSING , CAREGIVER , HOTEL & BEAUTY COURSES
IVA Para Medical Campus
Updated:
Thursday at 9:24 AM
Handmade Character Soft Toys Peppa Pig Family
anil1961
Updated:
Jul 1, 2026
Ad icon
Video Content Creator
pramukag
Updated:
Jun 28, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
kohomada Site 1kak block karanne.??
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="rockcity68" data-source="post: 13292209" data-attributes="member: 250998"><p><strong>Windows uses a HOSTS (located in %systemdrive%/windows/system32/drivers/etc) file to maintain a personal list of web addresses. Any time a request is made for a URL, the HOSTS file will be checked first. If a corresponding address is found you will be directed to that IP without first consulting a DNS Server. The original intent of this file was to define where sites exist; we will use it in this context to define where they don’t exist. Lets first look at a HOSTS file entry</strong></p><p><strong></strong></p><p><strong>127.0.0.1 localhost</strong> <strong></strong></p><p><strong></strong></p><p><strong>This is the loopback address for your machine for those cases where an application needs to reference the local machine by IP address- the loopback address will always be valid. This entry should never be changed.</strong> <strong></strong></p><p><strong></strong></p><p><strong>Now lets add an entry to block</strong> <strong></strong></p><p><strong></strong></p><p><strong>127.0.0.1 </strong> <strong><a href="http://www.yahoo.com/" target="_blank">www.yahoo.com</a></strong></p><p><strong></strong></p><p><strong>We are telling our local machine that Yahoo actually exists on the local machine. Any request for </strong> <strong><a href="http://www.yahoo.com/" target="_blank">www.yahoo.com</a> will be directed to the local machine and therefore effectively blocked. You could also use the IP of another website if you wanted to be creative.</strong></p><p><strong></strong></p><p><strong>Let’s take a closer look at a URL </strong> <strong><a href="http://www.yahoo.com/" target="_blank">http://www.yahoo.com</a></strong></p><p><strong></strong> </p><ul> <li data-xf-list-type="ul"><strong>http:// defines the transfer protocol in this case Hyper Text Transport Protocol; this is the standard for viewing websites. Another common protocol is ftp:// for file transfer.</strong></li> <li data-xf-list-type="ul"><strong>www is the host</strong></li> <li data-xf-list-type="ul"><strong>yahoo.com is the domain</strong></li> <li data-xf-list-type="ul"><strong>.com is further classified as the TLD (Top Level Domain)</strong></li> </ul><p><strong>A HOSTS file entry will disregard the transfer protocol so it isn’t needed. However, the host does play an important role. A webmaster may choose to define a host for his/her website. “WWW” has become the universal standard for the default host. It is just as common to define a site with no host as well. This means that as far as DNS goes <a href="http://www.yahoo.com/" target="_blank">www.yahoo.com</a> & yahoo.com are two totally different sites, even though they resolve to the same place. Because of this to effectively block the site, you must also block all hosts. This would usually mean:</strong></p><p><strong></strong></p><p><strong>127.0.0.1 yahoo.com</strong> <strong></strong></p><p><strong></strong></p><p><strong>127.0.0.1 </strong> <strong><a href="http://www.yahoo.com/" target="_blank">www.yahoo.com</a></strong></p><p></p><p><a href="http://www.overclock.net/t/44143/how-to-use-the-hosts-file-to-block-websites-in-windows" target="_blank">http://www.overclock.net/t/44143/how-to-use-the-hosts-file-to-block-websites-in-windows</a> <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /><img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="rockcity68, post: 13292209, member: 250998"] [B]Windows uses a HOSTS (located in %systemdrive%/windows/system32/drivers/etc) file to maintain a personal list of web addresses. Any time a request is made for a URL, the HOSTS file will be checked first. If a corresponding address is found you will be directed to that IP without first consulting a DNS Server. The original intent of this file was to define where sites exist; we will use it in this context to define where they don’t exist. Lets first look at a HOSTS file entry 127.0.0.1 localhost[/B] [B] This is the loopback address for your machine for those cases where an application needs to reference the local machine by IP address- the loopback address will always be valid. This entry should never be changed.[/B] [B] Now lets add an entry to block[/B] [B] 127.0.0.1 [/B] [B][URL="http://www.yahoo.com/"]www.yahoo.com[/URL] We are telling our local machine that Yahoo actually exists on the local machine. Any request for [/B] [B][URL="http://www.yahoo.com/"]www.yahoo.com[/URL] will be directed to the local machine and therefore effectively blocked. You could also use the IP of another website if you wanted to be creative. Let’s take a closer look at a URL [/B] [B][URL="http://www.yahoo.com/"]http://www.yahoo.com[/URL] [/B] [LIST] [*][B]http:// defines the transfer protocol in this case Hyper Text Transport Protocol; this is the standard for viewing websites. Another common protocol is ftp:// for file transfer.[/B] [*][B]www is the host[/B] [*][B]yahoo.com is the domain[/B] [*][B].com is further classified as the TLD (Top Level Domain)[/B] [/LIST] [B]A HOSTS file entry will disregard the transfer protocol so it isn’t needed. However, the host does play an important role. A webmaster may choose to define a host for his/her website. “WWW” has become the universal standard for the default host. It is just as common to define a site with no host as well. This means that as far as DNS goes [URL="http://www.yahoo.com/"]www.yahoo.com[/URL] & yahoo.com are two totally different sites, even though they resolve to the same place. Because of this to effectively block the site, you must also block all hosts. This would usually mean: 127.0.0.1 yahoo.com[/B] [B] 127.0.0.1 [/B] [B][URL="http://www.yahoo.com/"]www.yahoo.com[/URL][/B] [url]http://www.overclock.net/t/44143/how-to-use-the-hosts-file-to-block-websites-in-windows[/url] :D:D:D:D [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom