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. General Programming
  3. C#
  4. How can I block an http request?

How can I block an http request?

Scheduled Pinned Locked Moved C#
questionsysadmin
4 Posts 2 Posters 0 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.
  • R Offline
    R Offline
    rahul kulshreshtha
    wrote on last edited by
    #1

    In my pc there are few applications which sends request to server and receives response. I want to make an application which will block few requests sent by those applications. How can I do this ?

    T R 2 Replies Last reply
    0
    • R rahul kulshreshtha

      In my pc there are few applications which sends request to server and receives response. I want to make an application which will block few requests sent by those applications. How can I do this ?

      T Offline
      T Offline
      Tony Richards
      wrote on last edited by
      #2

      I'm chosing to assume you aren't doing this for malicious purposes. Please don't. A decent firewall will allow you to stop a program from accessing the internet.

      R 1 Reply Last reply
      0
      • T Tony Richards

        I'm chosing to assume you aren't doing this for malicious purposes. Please don't. A decent firewall will allow you to stop a program from accessing the internet.

        R Offline
        R Offline
        rahul kulshreshtha
        wrote on last edited by
        #3

        I want to make such firewall or want to hook into some process to do that. I have downloaded NetDefender and Easy Firewall and few others. But after adding rules, none of them was able to block. I also tried "Block All" option of NetDefender application. But it could not block. Every time I receive a message something like "Could not register rule with network adapter". I am the administrator so there should not be any problem with permissions but I don't know why it is not working.

        1 Reply Last reply
        0
        • R rahul kulshreshtha

          In my pc there are few applications which sends request to server and receives response. I want to make an application which will block few requests sent by those applications. How can I do this ?

          R Offline
          R Offline
          rahul kulshreshtha
          wrote on last edited by
          #4

          Is that possible in C#?

          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