How to block specific URL rather than the entire domain on a computer without software?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















I've been doing some googling and I can't seem to find an answer. How do you block a specific URL rather than the entire website without using a software.





For example, I want to block www.facebook.com/images/games/facebook_gaming_instant_game_banner.png. So essentially, I can access everything on facebook, but for the link above.



I want to block it on my entire computer and not just on my browser. Meaning, if I have a program trying to access this URL, its still blocked. How can I do this?



I tried blocking it in C:WindowsSystem32driversetchosts using the code:



127.0.0.1    www.facebook.com/images/games/facebook_gaming_instant_game_banner.png









share|improve this question

























  • When it comes to preventing yourself from doing something, its better to learn self control, rather than a fix. The reason is, if you implement something to prevent you from doing something, you have the ability to simply undo what you did.

    – Keltari
    Mar 12 at 4:53













  • You want to block access for all applications on the computer and don't want to use any software. Does your router have a blacklist capability? You've included conditions that restrict possible solutions. Can you add some context as to why you need those restrictions?

    – fixer1234
    Mar 12 at 4:57











  • @Keltari Actually, its not to do with self control. Its more of a programming/networking type thing. Facebook was just an example.

    – Paul
    Mar 12 at 4:58











  • @fixer1234 My router? Like the physical plastic router I have?

    – Paul
    Mar 12 at 5:08











  • @fixer1234 My router has parental controls but it doesn't let me block the exact url. Only the entire domain

    – Paul
    Mar 12 at 5:13


















-1















I've been doing some googling and I can't seem to find an answer. How do you block a specific URL rather than the entire website without using a software.





For example, I want to block www.facebook.com/images/games/facebook_gaming_instant_game_banner.png. So essentially, I can access everything on facebook, but for the link above.



I want to block it on my entire computer and not just on my browser. Meaning, if I have a program trying to access this URL, its still blocked. How can I do this?



I tried blocking it in C:WindowsSystem32driversetchosts using the code:



127.0.0.1    www.facebook.com/images/games/facebook_gaming_instant_game_banner.png









share|improve this question

























  • When it comes to preventing yourself from doing something, its better to learn self control, rather than a fix. The reason is, if you implement something to prevent you from doing something, you have the ability to simply undo what you did.

    – Keltari
    Mar 12 at 4:53













  • You want to block access for all applications on the computer and don't want to use any software. Does your router have a blacklist capability? You've included conditions that restrict possible solutions. Can you add some context as to why you need those restrictions?

    – fixer1234
    Mar 12 at 4:57











  • @Keltari Actually, its not to do with self control. Its more of a programming/networking type thing. Facebook was just an example.

    – Paul
    Mar 12 at 4:58











  • @fixer1234 My router? Like the physical plastic router I have?

    – Paul
    Mar 12 at 5:08











  • @fixer1234 My router has parental controls but it doesn't let me block the exact url. Only the entire domain

    – Paul
    Mar 12 at 5:13














-1












-1








-1








I've been doing some googling and I can't seem to find an answer. How do you block a specific URL rather than the entire website without using a software.





For example, I want to block www.facebook.com/images/games/facebook_gaming_instant_game_banner.png. So essentially, I can access everything on facebook, but for the link above.



I want to block it on my entire computer and not just on my browser. Meaning, if I have a program trying to access this URL, its still blocked. How can I do this?



I tried blocking it in C:WindowsSystem32driversetchosts using the code:



127.0.0.1    www.facebook.com/images/games/facebook_gaming_instant_game_banner.png









share|improve this question
















I've been doing some googling and I can't seem to find an answer. How do you block a specific URL rather than the entire website without using a software.





For example, I want to block www.facebook.com/images/games/facebook_gaming_instant_game_banner.png. So essentially, I can access everything on facebook, but for the link above.



I want to block it on my entire computer and not just on my browser. Meaning, if I have a program trying to access this URL, its still blocked. How can I do this?



I tried blocking it in C:WindowsSystem32driversetchosts using the code:



127.0.0.1    www.facebook.com/images/games/facebook_gaming_instant_game_banner.png






windows networking windows-8 connection blocking






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 12 at 8:57









Tetsujin

16k53462




16k53462










asked Mar 12 at 3:55









PaulPaul

11




11













  • When it comes to preventing yourself from doing something, its better to learn self control, rather than a fix. The reason is, if you implement something to prevent you from doing something, you have the ability to simply undo what you did.

    – Keltari
    Mar 12 at 4:53













  • You want to block access for all applications on the computer and don't want to use any software. Does your router have a blacklist capability? You've included conditions that restrict possible solutions. Can you add some context as to why you need those restrictions?

    – fixer1234
    Mar 12 at 4:57











  • @Keltari Actually, its not to do with self control. Its more of a programming/networking type thing. Facebook was just an example.

    – Paul
    Mar 12 at 4:58











  • @fixer1234 My router? Like the physical plastic router I have?

    – Paul
    Mar 12 at 5:08











  • @fixer1234 My router has parental controls but it doesn't let me block the exact url. Only the entire domain

    – Paul
    Mar 12 at 5:13



















  • When it comes to preventing yourself from doing something, its better to learn self control, rather than a fix. The reason is, if you implement something to prevent you from doing something, you have the ability to simply undo what you did.

    – Keltari
    Mar 12 at 4:53













  • You want to block access for all applications on the computer and don't want to use any software. Does your router have a blacklist capability? You've included conditions that restrict possible solutions. Can you add some context as to why you need those restrictions?

    – fixer1234
    Mar 12 at 4:57











  • @Keltari Actually, its not to do with self control. Its more of a programming/networking type thing. Facebook was just an example.

    – Paul
    Mar 12 at 4:58











  • @fixer1234 My router? Like the physical plastic router I have?

    – Paul
    Mar 12 at 5:08











  • @fixer1234 My router has parental controls but it doesn't let me block the exact url. Only the entire domain

    – Paul
    Mar 12 at 5:13

















When it comes to preventing yourself from doing something, its better to learn self control, rather than a fix. The reason is, if you implement something to prevent you from doing something, you have the ability to simply undo what you did.

– Keltari
Mar 12 at 4:53







When it comes to preventing yourself from doing something, its better to learn self control, rather than a fix. The reason is, if you implement something to prevent you from doing something, you have the ability to simply undo what you did.

– Keltari
Mar 12 at 4:53















You want to block access for all applications on the computer and don't want to use any software. Does your router have a blacklist capability? You've included conditions that restrict possible solutions. Can you add some context as to why you need those restrictions?

– fixer1234
Mar 12 at 4:57





You want to block access for all applications on the computer and don't want to use any software. Does your router have a blacklist capability? You've included conditions that restrict possible solutions. Can you add some context as to why you need those restrictions?

– fixer1234
Mar 12 at 4:57













@Keltari Actually, its not to do with self control. Its more of a programming/networking type thing. Facebook was just an example.

– Paul
Mar 12 at 4:58





@Keltari Actually, its not to do with self control. Its more of a programming/networking type thing. Facebook was just an example.

– Paul
Mar 12 at 4:58













@fixer1234 My router? Like the physical plastic router I have?

– Paul
Mar 12 at 5:08





@fixer1234 My router? Like the physical plastic router I have?

– Paul
Mar 12 at 5:08













@fixer1234 My router has parental controls but it doesn't let me block the exact url. Only the entire domain

– Paul
Mar 12 at 5:13





@fixer1234 My router has parental controls but it doesn't let me block the exact url. Only the entire domain

– Paul
Mar 12 at 5:13










2 Answers
2






active

oldest

votes


















1














It’s not possible. To block an HTTP resource, you need a filter that understands HTTP. No such thing is built into Windows (or any other operating system).



Indeed, with HTTPS (which Facebook uses) you’d have to perform a MITM attack on the encrypted connection to filter its contents. Or, you know, just use a browser extension.



The hosts file is for hosts only. So you could put www.facebook.com there and it would work and block the main Facebook web page.






share|improve this answer
























  • Since its not possible, is there any software recommendations to block outgoing requests for specific URL's?

    – Paul
    Mar 12 at 6:27











  • Sure, uBlock Origin. It’s the best ad blocker there is.

    – Daniel B
    Mar 12 at 9:21











  • This is for the browser... I wanted a program for the computer

    – Paul
    Mar 15 at 5:20













  • Yes. That's not possible, because SSL.

    – Daniel B
    Mar 15 at 7:23



















0














You can Use Block Site or browser Extensions. Currently I am using Block site and it is working fine.






share|improve this answer



















  • 1





    Well I am looking for a solution to block it from my entire computer. Not just my browser (as written in my question)

    – Paul
    Mar 12 at 4:27












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1413274%2fhow-to-block-specific-url-rather-than-the-entire-domain-on-a-computer-without-so%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














It’s not possible. To block an HTTP resource, you need a filter that understands HTTP. No such thing is built into Windows (or any other operating system).



Indeed, with HTTPS (which Facebook uses) you’d have to perform a MITM attack on the encrypted connection to filter its contents. Or, you know, just use a browser extension.



The hosts file is for hosts only. So you could put www.facebook.com there and it would work and block the main Facebook web page.






share|improve this answer
























  • Since its not possible, is there any software recommendations to block outgoing requests for specific URL's?

    – Paul
    Mar 12 at 6:27











  • Sure, uBlock Origin. It’s the best ad blocker there is.

    – Daniel B
    Mar 12 at 9:21











  • This is for the browser... I wanted a program for the computer

    – Paul
    Mar 15 at 5:20













  • Yes. That's not possible, because SSL.

    – Daniel B
    Mar 15 at 7:23
















1














It’s not possible. To block an HTTP resource, you need a filter that understands HTTP. No such thing is built into Windows (or any other operating system).



Indeed, with HTTPS (which Facebook uses) you’d have to perform a MITM attack on the encrypted connection to filter its contents. Or, you know, just use a browser extension.



The hosts file is for hosts only. So you could put www.facebook.com there and it would work and block the main Facebook web page.






share|improve this answer
























  • Since its not possible, is there any software recommendations to block outgoing requests for specific URL's?

    – Paul
    Mar 12 at 6:27











  • Sure, uBlock Origin. It’s the best ad blocker there is.

    – Daniel B
    Mar 12 at 9:21











  • This is for the browser... I wanted a program for the computer

    – Paul
    Mar 15 at 5:20













  • Yes. That's not possible, because SSL.

    – Daniel B
    Mar 15 at 7:23














1












1








1







It’s not possible. To block an HTTP resource, you need a filter that understands HTTP. No such thing is built into Windows (or any other operating system).



Indeed, with HTTPS (which Facebook uses) you’d have to perform a MITM attack on the encrypted connection to filter its contents. Or, you know, just use a browser extension.



The hosts file is for hosts only. So you could put www.facebook.com there and it would work and block the main Facebook web page.






share|improve this answer













It’s not possible. To block an HTTP resource, you need a filter that understands HTTP. No such thing is built into Windows (or any other operating system).



Indeed, with HTTPS (which Facebook uses) you’d have to perform a MITM attack on the encrypted connection to filter its contents. Or, you know, just use a browser extension.



The hosts file is for hosts only. So you could put www.facebook.com there and it would work and block the main Facebook web page.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 12 at 6:19









Daniel BDaniel B

34.6k76587




34.6k76587













  • Since its not possible, is there any software recommendations to block outgoing requests for specific URL's?

    – Paul
    Mar 12 at 6:27











  • Sure, uBlock Origin. It’s the best ad blocker there is.

    – Daniel B
    Mar 12 at 9:21











  • This is for the browser... I wanted a program for the computer

    – Paul
    Mar 15 at 5:20













  • Yes. That's not possible, because SSL.

    – Daniel B
    Mar 15 at 7:23



















  • Since its not possible, is there any software recommendations to block outgoing requests for specific URL's?

    – Paul
    Mar 12 at 6:27











  • Sure, uBlock Origin. It’s the best ad blocker there is.

    – Daniel B
    Mar 12 at 9:21











  • This is for the browser... I wanted a program for the computer

    – Paul
    Mar 15 at 5:20













  • Yes. That's not possible, because SSL.

    – Daniel B
    Mar 15 at 7:23

















Since its not possible, is there any software recommendations to block outgoing requests for specific URL's?

– Paul
Mar 12 at 6:27





Since its not possible, is there any software recommendations to block outgoing requests for specific URL's?

– Paul
Mar 12 at 6:27













Sure, uBlock Origin. It’s the best ad blocker there is.

– Daniel B
Mar 12 at 9:21





Sure, uBlock Origin. It’s the best ad blocker there is.

– Daniel B
Mar 12 at 9:21













This is for the browser... I wanted a program for the computer

– Paul
Mar 15 at 5:20







This is for the browser... I wanted a program for the computer

– Paul
Mar 15 at 5:20















Yes. That's not possible, because SSL.

– Daniel B
Mar 15 at 7:23





Yes. That's not possible, because SSL.

– Daniel B
Mar 15 at 7:23













0














You can Use Block Site or browser Extensions. Currently I am using Block site and it is working fine.






share|improve this answer



















  • 1





    Well I am looking for a solution to block it from my entire computer. Not just my browser (as written in my question)

    – Paul
    Mar 12 at 4:27
















0














You can Use Block Site or browser Extensions. Currently I am using Block site and it is working fine.






share|improve this answer



















  • 1





    Well I am looking for a solution to block it from my entire computer. Not just my browser (as written in my question)

    – Paul
    Mar 12 at 4:27














0












0








0







You can Use Block Site or browser Extensions. Currently I am using Block site and it is working fine.






share|improve this answer













You can Use Block Site or browser Extensions. Currently I am using Block site and it is working fine.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 12 at 4:21









serverAdmin123serverAdmin123

1165




1165








  • 1





    Well I am looking for a solution to block it from my entire computer. Not just my browser (as written in my question)

    – Paul
    Mar 12 at 4:27














  • 1





    Well I am looking for a solution to block it from my entire computer. Not just my browser (as written in my question)

    – Paul
    Mar 12 at 4:27








1




1





Well I am looking for a solution to block it from my entire computer. Not just my browser (as written in my question)

– Paul
Mar 12 at 4:27





Well I am looking for a solution to block it from my entire computer. Not just my browser (as written in my question)

– Paul
Mar 12 at 4:27


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1413274%2fhow-to-block-specific-url-rather-than-the-entire-domain-on-a-computer-without-so%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How do I know what Microsoft account the skydrive app is syncing to?

When does type information flow backwards in C++?

Grease: Live!