Knowledgebase
Portal Home > Knowledgebase > Linux Hosting Tutorials > How can I stop Javascript Virus warnings on my site?
How can I stop Javascript Virus warnings on my site?
| Recently, a number of users have expressed concerns about a possible virus on their server. We want to assure you that there is no virus on our servers. Code is being inserted into your index file that contains a link to an actual virus. Please check your site to see if you have this same type of code in the page. If so, remove it and that will stop the attempt of the virus. The actual script will probably be encoded, and will start something like this:
e = '0x00' + '22';str1 = "%99%C1%CA%D7 ..... continued as a very long string of characters. If you find it in your page, remove it, and contact us right away, so we can help with any further clean up that may be needed.
You may also find an iframe tag referring to some outside site. This is also virus related, delete the references to the iframe(s) also.
How to prevent this....
You can use this code we to prevent this kind of script insertion when it occurs in an index file. Insert this code after the HEAD tag (you will also need to place the < script > and < /script > tags before and after this code:
function disableDocWrite () { document.oldDocumentWrite = document.write; document.write = function () {}; } function enableDocWrite () { document.write = document.oldDocumentWrite; } disableDocWrite();
If you have any further questions or concerns about this please open a ticket, thank you.
|
Add to Favourites
Print this Article
|
Also Read
Powered by WHMCompleteSolution