How can I block a specific host

user320087

I am not good with linux. I need to know 3 ways to block HTTP service on port 80 for a specific host on my machine. I need 3 commands or tools. I have looked everywhere and all I can find is the command to block HTTP service by the IP tables. Please help, even if you can point me in the right direction, it would be appreciated.

jdh

All HTTP connections are translated on the client, before asking your DNS server, using a hosts file. Here you can list a specific host name and use the shortcut of your local machine 127.0.0.1. Thus, that address is effective not resolved, and the resource will typically return a 404 error (unless you are running a local webserver with a similar path). It's not considered the best solution, but a very simple common solution. The host file is located at /etc/hosts. Its a text file that you can edit. Research for more detailed info and syntax.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How can I copy&paste from the host to a KVM guest?

분류에서Dev

How can I host a single MySQL database on multiple servers?

분류에서Dev

How can I set Crontab for a specific hour?

분류에서Dev

How can I connect to a specific BSSID?

분류에서Dev

How can I popd to a specific directory?

분류에서Dev

How can I prevent automerge on specific files

분류에서Dev

How can I block messenger spam on Windows 8?

분류에서Dev

How can I block a user agent string in IE11?

분류에서Dev

How can I get a block cursor in Vim in the Cygwin terminal?

분류에서Dev

How can I reverse the ordering of spacebars #each block

분류에서Dev

How can I get a specific folder with a specific folders sibling in python

분류에서Dev

How can I list the packages I removed on a specific day?

분류에서Dev

How to redirect web traffic to specific host with iptables

분류에서Dev

How can I create a file with a specific size from a command line?

분류에서Dev

How can I suppress specific checkstyle rules in eclipse?

분류에서Dev

How can I set an the image of an imageview for a specific file in Android?

분류에서Dev

how can I verify a mock was called with a param with specific fields' values?

분류에서Dev

How can i check if an item is part of a specific menu [Joomla 3.3]

분류에서Dev

How can I tell django 1.7 to put migration into specific folder

분류에서Dev

How can I run a specific line as a command in a text file?

분류에서Dev

How can I delete a specific river using NEST?

분류에서Dev

How can I symlink to files in a specific Git ref/branch?

분류에서Dev

How can I change a specific constraints on the last UITableViewCell?

분류에서Dev

JQuery - How can I determine if a specific class has been Toggled?

분류에서Dev

How can I stack wildcards to target specific files?

분류에서Dev

How can I color specific parts of the rsync output?

분류에서Dev

How can I extract text between parentheses containing a specific word?

분류에서Dev

How can I print a specific field with an expression using awk -F?

분류에서Dev

How can I use Icalcs to grant access to a specific machine on the network?

Related 관련 기사

  1. 1

    How can I copy&paste from the host to a KVM guest?

  2. 2

    How can I host a single MySQL database on multiple servers?

  3. 3

    How can I set Crontab for a specific hour?

  4. 4

    How can I connect to a specific BSSID?

  5. 5

    How can I popd to a specific directory?

  6. 6

    How can I prevent automerge on specific files

  7. 7

    How can I block messenger spam on Windows 8?

  8. 8

    How can I block a user agent string in IE11?

  9. 9

    How can I get a block cursor in Vim in the Cygwin terminal?

  10. 10

    How can I reverse the ordering of spacebars #each block

  11. 11

    How can I get a specific folder with a specific folders sibling in python

  12. 12

    How can I list the packages I removed on a specific day?

  13. 13

    How to redirect web traffic to specific host with iptables

  14. 14

    How can I create a file with a specific size from a command line?

  15. 15

    How can I suppress specific checkstyle rules in eclipse?

  16. 16

    How can I set an the image of an imageview for a specific file in Android?

  17. 17

    how can I verify a mock was called with a param with specific fields' values?

  18. 18

    How can i check if an item is part of a specific menu [Joomla 3.3]

  19. 19

    How can I tell django 1.7 to put migration into specific folder

  20. 20

    How can I run a specific line as a command in a text file?

  21. 21

    How can I delete a specific river using NEST?

  22. 22

    How can I symlink to files in a specific Git ref/branch?

  23. 23

    How can I change a specific constraints on the last UITableViewCell?

  24. 24

    JQuery - How can I determine if a specific class has been Toggled?

  25. 25

    How can I stack wildcards to target specific files?

  26. 26

    How can I color specific parts of the rsync output?

  27. 27

    How can I extract text between parentheses containing a specific word?

  28. 28

    How can I print a specific field with an expression using awk -F?

  29. 29

    How can I use Icalcs to grant access to a specific machine on the network?

뜨겁다태그

보관