Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. How to disable Internet (or block all ports)?

How to disable Internet (or block all ports)?

Scheduled Pinned Locked Moved Article Writing
sysadminalgorithmshelptutorialquestion
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sasha Djurovic
    wrote on last edited by
    #1

    I am trying to create an application that will shut down all ports and disable internet access but I have not been able to do so. First of all I don't know how to go about blocking ports at all; while I did try to use blocking sockets they won't work if port is already in use WSAALREADYINUSE or something. Second of all I don't think that that would be efficient method to block internet access as I would probably have to open thousands of sockets in order to block thousands of ports. What I realy need is a way to disable internet (dial-up AND LAN) access by simple click of a button even if computer already has internet and server applications running, while preserving LAN operational, and also to be able to enable internet access by simple click. Please help me with this, I was searching net and books for weeks now but I still didn't come up with satisfying solution. Thank you, Sasha.

    T 1 Reply Last reply
    0
    • S Sasha Djurovic

      I am trying to create an application that will shut down all ports and disable internet access but I have not been able to do so. First of all I don't know how to go about blocking ports at all; while I did try to use blocking sockets they won't work if port is already in use WSAALREADYINUSE or something. Second of all I don't think that that would be efficient method to block internet access as I would probably have to open thousands of sockets in order to block thousands of ports. What I realy need is a way to disable internet (dial-up AND LAN) access by simple click of a button even if computer already has internet and server applications running, while preserving LAN operational, and also to be able to enable internet access by simple click. Please help me with this, I was searching net and books for weeks now but I still didn't come up with satisfying solution. Thank you, Sasha.

      T Offline
      T Offline
      TomKat
      wrote on last edited by
      #2

      API Hooking by DLL Injecting Revealed - WinSock2 Hook check out this tool and you`ll be surprised ! you can hook all apps with ws2_32.dll and when they call WSAStartup() you return SOCKET_ERROR ! or disable the connect function :) //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups