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. Web Development
  3. How to protect site from Virus attacks

How to protect site from Virus attacks

Scheduled Pinned Locked Moved Web Development
helphtmldatabasecomhosting
5 Posts 3 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.
  • P Offline
    P Offline
    Poonam Gandash
    wrote on last edited by
    #1

    I am in great trouble I am getting virus attacks on my site again and again. Just check trumpandgates.com , oceanicsky.org ( make sure you have antivirus on your system) when I discussed with my hosting people they are saying that its code venerabalities problem. But site having even single html page were also attacked. Please please help me. I have more than 200 sites attacked time and again. Please suggest me how to make my sites safe and protect from Viruses. I have protected site from sql injections. with this code Function IllegalChars(sInput) Dim sBadChars, iCounter sBadChars=array("select", "drop","insert", "delete", "xp_", "#", "%","(", ")","<",">","=","`") For iCounter = 0 to uBound(sBadChars) If Instr(sInput,sBadChars(iCounter))>0 Then IllegalChars=True End If Next End function Dim sUsername, sPassword sUsername=Request.Form("username") sPassword=Request.Form("password") If IllegalChars(sUsername)=True OR IllegalChars(sPassword)=True Then Response.redirect("no_access.asp") End If

    C 1 Reply Last reply
    0
    • P Poonam Gandash

      I am in great trouble I am getting virus attacks on my site again and again. Just check trumpandgates.com , oceanicsky.org ( make sure you have antivirus on your system) when I discussed with my hosting people they are saying that its code venerabalities problem. But site having even single html page were also attacked. Please please help me. I have more than 200 sites attacked time and again. Please suggest me how to make my sites safe and protect from Viruses. I have protected site from sql injections. with this code Function IllegalChars(sInput) Dim sBadChars, iCounter sBadChars=array("select", "drop","insert", "delete", "xp_", "#", "%","(", ")","<",">","=","`") For iCounter = 0 to uBound(sBadChars) If Instr(sInput,sBadChars(iCounter))>0 Then IllegalChars=True End If Next End function Dim sUsername, sPassword sUsername=Request.Form("username") sPassword=Request.Form("password") If IllegalChars(sUsername)=True OR IllegalChars(sPassword)=True Then Response.redirect("no_access.asp") End If

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      How can a site be attacked by viruses ? Sounds like rubbish to me. Your site serves HTML, if the server is secure, then you're OK. If it's not, then it's not. The hosting people have the issue.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      P 1 Reply Last reply
      0
      • C Christian Graus

        How can a site be attacked by viruses ? Sounds like rubbish to me. Your site serves HTML, if the server is secure, then you're OK. If it's not, then it's not. The hosting people have the issue.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        P Offline
        P Offline
        Poonam Gandash
        wrote on last edited by
        #3

        I Contacted them but they are saying that there are vanerablities in my code. :((

        4 1 Reply Last reply
        0
        • P Poonam Gandash

          I Contacted them but they are saying that there are vanerablities in my code. :((

          4 Offline
          4 Offline
          47_MasoN_47
          wrote on last edited by
          #4

          Well that's a bunch of baloney. I don't think it's physically possible to inject a virus into HTML unless they are breaking into the hosting company's servers and editing your HTML files. It's not like you can write some 1337 phrase in a text box and use it to put viruses on websites. Sounds like your hosting company just doesn't want to admit that they have a problem.

          P 1 Reply Last reply
          0
          • 4 47_MasoN_47

            Well that's a bunch of baloney. I don't think it's physically possible to inject a virus into HTML unless they are breaking into the hosting company's servers and editing your HTML files. It's not like you can write some 1337 phrase in a text box and use it to put viruses on websites. Sounds like your hosting company just doesn't want to admit that they have a problem.

            P Offline
            P Offline
            Poonam Gandash
            wrote on last edited by
            #5

            Anybody can please suggest most secure hosting services. I am from India but I have account in Paypal and ICICI so I can purchase space from any country. I purchase space from different 10 servers but somebody is tracking site listed on rpgwebsolutions.com ( which I have removed now for safety). All sites listed there are struck by virus hosted on different servers. Even Globat was strucked. Virus is asking to install some Chinese font. I have more than 200 sites. Now I am in big trouble somebody please help. :((

            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