How to block any website on your computer


1. Make sure you have administrator access on your computer. Sign in to your PC using an administrator account and go to C:\Windows\System32\drivers\etc\

2. Double-click the file named "hosts" and select Notepad from the list of programs to open the file. Click OK. The last two lines of your hosts file should read "# 127.0.0.1 localhost" and "# ::1 localhost".

2a. In case you can't edit the file, you'll need to right-click the file labelled hosts and select Properties. Click the Security tab, select the administrator account and click Edit.

2b. In the pop-up, select the account again and check Full control. Click Apply > Yes. Now click OK in all pop-ups.

3. At the end of the file, you can add the addresses of websites to block. To do this, just add a line at the end of the file, with 127.0.0.1 and then the name of the site you want to block - this will redirect the site's name to your local computer.

4. To block Google, for example, add "127.0.0.1 www.facebook.com" to the end of the file without the quote marks. You can block as many sites as you want this way, but remember you can only add one per line.

5. Repeat this step until you've added all websites you want to block.

6. Now close the hosts file and click Save. Reboot your computer for the changes to take effect and you'll find that all those websites are now blocked.



How to download any web site Used httrack software

There are many software which facilitate offline viewing of a website. In this article, I will bring to the spotlight the open source offline browser HTTrack Website Copier. It is a well-liked software used for offline browsing of websites. HTTrack (WinHTTrack for Windows) can download an entire website. And entire means entire–all the text, images, videos, GIFs, all of it.
Although HTTrack is available for different operating systems, I have used Windows OS to explain the working of HTTrack as it is preferred by many users over other operating systems.




How to redirect web page using jQuery

The jQuery API also allows you to redirect a web page to another URL in just one line of code. Though this is not the ideal way of using jQuery and but since we all use jQuery for different needs in a web project, it makes sense to leverage it for whatever feature we can. You can use the attr() function of jQuery to redirect a web page as shown below.

Here is a complete web page which redirects to another URL using jQuery.

 <html>
<head>
<title>Redirect a webpage using jQuery</title>
</head>
<body>
<h2>Redirecting to another URL</h2>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script> $(document).ready(function() { var url = "https://web-help-technology.blogspot.com/"; 
$(location).attr('href',url);
 }); 
 </script> 
</body> 
</html>

Python in AI: Getting Started with TensorFlow & PyTorch

  Artificial Intelligence (AI) is no longer just a buzzword. It powers recommendation systems, chatbots, self-driving cars, and more. At the...