How do I unblock website in Ubuntu?
I have blocked youtube.com website using gedit /etc/hosts file. Then I have removed the entries in hosts file. Even though the websites are blocked permanently. How can I unblock Youtube again?
14.04 hosts
add a comment |
I have blocked youtube.com website using gedit /etc/hosts file. Then I have removed the entries in hosts file. Even though the websites are blocked permanently. How can I unblock Youtube again?
14.04 hosts
Please provide more information on what exactly you did. If you removed the entries you added to/etc/hostsfile then you should be able to access that site without issues. What is the error you are getting when trying to access it?
– mbiber
Apr 1 '16 at 12:23
add a comment |
I have blocked youtube.com website using gedit /etc/hosts file. Then I have removed the entries in hosts file. Even though the websites are blocked permanently. How can I unblock Youtube again?
14.04 hosts
I have blocked youtube.com website using gedit /etc/hosts file. Then I have removed the entries in hosts file. Even though the websites are blocked permanently. How can I unblock Youtube again?
14.04 hosts
14.04 hosts
edited 8 hours ago
Asadefa
135
135
asked Apr 1 '16 at 11:28
sureshkumarsureshkumar
11
11
Please provide more information on what exactly you did. If you removed the entries you added to/etc/hostsfile then you should be able to access that site without issues. What is the error you are getting when trying to access it?
– mbiber
Apr 1 '16 at 12:23
add a comment |
Please provide more information on what exactly you did. If you removed the entries you added to/etc/hostsfile then you should be able to access that site without issues. What is the error you are getting when trying to access it?
– mbiber
Apr 1 '16 at 12:23
Please provide more information on what exactly you did. If you removed the entries you added to
/etc/hosts file then you should be able to access that site without issues. What is the error you are getting when trying to access it?– mbiber
Apr 1 '16 at 12:23
Please provide more information on what exactly you did. If you removed the entries you added to
/etc/hosts file then you should be able to access that site without issues. What is the error you are getting when trying to access it?– mbiber
Apr 1 '16 at 12:23
add a comment |
1 Answer
1
active
oldest
votes
to find out the IP address of a web-site you may visit this conver host to IP
please add a new entry in /etc/hosts file with the IP address of the website you want to visit in your case youtube.com. Here is for example: add in your hosts file
216.58.208.142 www.youtube.com # put IP address and its hostname
then run
sudo /etc/init.d/networking start
You should be able to visit a site again. Moreover, any route is specified in the file /etc/hosts are prioritised by the system.
Changes in/etc/hostsare immediate, unless you have nscd or something similar running. You don't need to do the/etc/init.d/thing.
– muru
Apr 2 '16 at 5:24
Yes you are right but I put in case in /etc/hosts file contains both127.0.0.1 www.youtube.com 216.58.208.142 www.youtube.comthen a start is needed to access the site again though having the first entry is useless
– bhordupur
Apr 2 '16 at 5:31
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f752647%2fhow-do-i-unblock-website-in-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
to find out the IP address of a web-site you may visit this conver host to IP
please add a new entry in /etc/hosts file with the IP address of the website you want to visit in your case youtube.com. Here is for example: add in your hosts file
216.58.208.142 www.youtube.com # put IP address and its hostname
then run
sudo /etc/init.d/networking start
You should be able to visit a site again. Moreover, any route is specified in the file /etc/hosts are prioritised by the system.
Changes in/etc/hostsare immediate, unless you have nscd or something similar running. You don't need to do the/etc/init.d/thing.
– muru
Apr 2 '16 at 5:24
Yes you are right but I put in case in /etc/hosts file contains both127.0.0.1 www.youtube.com 216.58.208.142 www.youtube.comthen a start is needed to access the site again though having the first entry is useless
– bhordupur
Apr 2 '16 at 5:31
add a comment |
to find out the IP address of a web-site you may visit this conver host to IP
please add a new entry in /etc/hosts file with the IP address of the website you want to visit in your case youtube.com. Here is for example: add in your hosts file
216.58.208.142 www.youtube.com # put IP address and its hostname
then run
sudo /etc/init.d/networking start
You should be able to visit a site again. Moreover, any route is specified in the file /etc/hosts are prioritised by the system.
Changes in/etc/hostsare immediate, unless you have nscd or something similar running. You don't need to do the/etc/init.d/thing.
– muru
Apr 2 '16 at 5:24
Yes you are right but I put in case in /etc/hosts file contains both127.0.0.1 www.youtube.com 216.58.208.142 www.youtube.comthen a start is needed to access the site again though having the first entry is useless
– bhordupur
Apr 2 '16 at 5:31
add a comment |
to find out the IP address of a web-site you may visit this conver host to IP
please add a new entry in /etc/hosts file with the IP address of the website you want to visit in your case youtube.com. Here is for example: add in your hosts file
216.58.208.142 www.youtube.com # put IP address and its hostname
then run
sudo /etc/init.d/networking start
You should be able to visit a site again. Moreover, any route is specified in the file /etc/hosts are prioritised by the system.
to find out the IP address of a web-site you may visit this conver host to IP
please add a new entry in /etc/hosts file with the IP address of the website you want to visit in your case youtube.com. Here is for example: add in your hosts file
216.58.208.142 www.youtube.com # put IP address and its hostname
then run
sudo /etc/init.d/networking start
You should be able to visit a site again. Moreover, any route is specified in the file /etc/hosts are prioritised by the system.
edited Apr 2 '16 at 5:18
answered Apr 1 '16 at 12:13
bhordupurbhordupur
32838
32838
Changes in/etc/hostsare immediate, unless you have nscd or something similar running. You don't need to do the/etc/init.d/thing.
– muru
Apr 2 '16 at 5:24
Yes you are right but I put in case in /etc/hosts file contains both127.0.0.1 www.youtube.com 216.58.208.142 www.youtube.comthen a start is needed to access the site again though having the first entry is useless
– bhordupur
Apr 2 '16 at 5:31
add a comment |
Changes in/etc/hostsare immediate, unless you have nscd or something similar running. You don't need to do the/etc/init.d/thing.
– muru
Apr 2 '16 at 5:24
Yes you are right but I put in case in /etc/hosts file contains both127.0.0.1 www.youtube.com 216.58.208.142 www.youtube.comthen a start is needed to access the site again though having the first entry is useless
– bhordupur
Apr 2 '16 at 5:31
Changes in
/etc/hosts are immediate, unless you have nscd or something similar running. You don't need to do the /etc/init.d/ thing.– muru
Apr 2 '16 at 5:24
Changes in
/etc/hosts are immediate, unless you have nscd or something similar running. You don't need to do the /etc/init.d/ thing.– muru
Apr 2 '16 at 5:24
Yes you are right but I put in case in /etc/hosts file contains both
127.0.0.1 www.youtube.com 216.58.208.142 www.youtube.com then a start is needed to access the site again though having the first entry is useless– bhordupur
Apr 2 '16 at 5:31
Yes you are right but I put in case in /etc/hosts file contains both
127.0.0.1 www.youtube.com 216.58.208.142 www.youtube.com then a start is needed to access the site again though having the first entry is useless– bhordupur
Apr 2 '16 at 5:31
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f752647%2fhow-do-i-unblock-website-in-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please provide more information on what exactly you did. If you removed the entries you added to
/etc/hostsfile then you should be able to access that site without issues. What is the error you are getting when trying to access it?– mbiber
Apr 1 '16 at 12:23