Click the Windows logo in the bottom-left corner of the screen or press the ⊞ Win key. On Windows 8, you must hover your cursor in the top-right corner of the screen and then click the magnifying glass icon. Doing so will display the Notepad app at the top of the Start menu window. This option will open Notepad using your administrator privileges. If you don't open Notepad in administrator mode, you won't be able to edit the "hosts" file. On a laptop with a trackpad instead of a traditional mouse, use two fingers to tap the trackpad instead of right-clicking. Doing so will confirm your decision and open Notepad. You'll find Open in the File drop-down menu. In the window that opens after clicking Open..., do the following:  Click the This PC tab on the left side of the window. Double-click your computer's hard drive (e.g., OS (C:)). Double-click the Windows folder. Scroll down and double-click the System32 folder. Scroll down and double-click the drivers folder. Double-click the etc folder. Click the "Text Documents" drop-down box near the bottom of the window, then click All Files in the drop-down menu. You should see several files appear in the window. Right-click the "hosts" file, then do the following:  Click Properties  Click Security  Click Edit  Check the "Full Control" box. Click OK, then click Yes when prompted. Click OK to exit the Properties window. This will open the "hosts" file in Notepad, allowing you to view and edit its contents. You'll see two "localhost" lines of text here. It will say either "::1 localhost" or "127.0.0.1 localhost" at the bottom of the page. Your cursor must be directly below the last line of text on this page. Be careful not to delete anything that is already in the hosts file. This is the loopback address to your own computer, which is what will return an error page in your web browser when someone tries to visit the blocked site. For example, if you wanted to block Google, you would type www.google.com. If you're blocking sites on Google Chrome, you'll need to place a space and then the "www.[site].com" version of the website's address after the "[site].com" version. To block Facebook, for example, you would type in 127.0.0.1 facebook.com www.facebook.com. This moves your cursor to a new line. The code you entered will tell your computer to redirect the website to your loopback address instead.  You can add as many sites as you want to block, one per line, using the same number (127.0.0.1) as before. If you want to be as thorough as possible, enter different variations of the address (e.g., "google.com" and "https://www.google.com/") as well. Your changes won't be saved if you simply save using File > Save, so do the following to confirm your changes:  Click File  Click Save As...  Click Text Documents, then click All Files in the drop-down menu. Click the "hosts" file. Click Save  Click Yes when prompted.
افتح قائمة ابدأ. اكتب Notepad في قائمة ابدأ. اضغط بزر الفأرة الأيمن على أيقونة برنامج "المفكرة" Notepad واختر "التشغيل كمدير" Run as administrator. انقر على "نعم" Yes. انقر على زر قائمة "ملف" File ثم اضغط على "فتح…" Open…. اذهب إلى المُجلد المحتوي على ملف المستضيفات على جهازك. اعرض الملفات من كل الامتدادات والأنواع. اسمح بتعديل ملف "المستضيفات" (Hosts). انقر مرتين على ملف "المستضيفات" (hosts). مرر الشاشة وصولًا لأدنى محتويات الملف. انقر أسفل السطر الأخير من النص. اكتب 127.0.0.1 ثم انقر على زر Tab ↹ من لوحة المفاتيح. اكتب عنوان الموقع الإلكتروني المُراد حجبه. انقر على زر "الإدخال" ↵ Enter. احفظ الملف.