Thauwa Posted January 11, 2010 Share Posted January 11, 2010 Hello people. I want some help trying to find out how to stop a java script from running on my php page. I did not put that link there and it leads to a virus, it appears right after the <head> tags of my page and does not allow anyone to pass. So is there a way that I could prevent the script from running, like use php to prevent that link from appearing?? Thanks, and here's the script: <script src=http://picobellVIRUSlink i deleted link!!.com ></script> Link to comment https://forums.phpfreaks.com/topic/187987-stop-a-script-from-running-on-page/ Share on other sites More sharing options...
oni-kun Posted January 11, 2010 Share Posted January 11, 2010 Hello people. I want some help trying to find out how to stop a java script from running on my php page. I did not put that link there and it leads to a virus, it appears right after the <head> tags of my page and does not allow anyone to pass. So is there a way that I could prevent the script from running, like use php to prevent that link from appearing?? Thanks, and here's the script: <script src=http://picobellVIRUSlink i deleted link!!.com ></script> I assume you're a beginner from how you're running in to that specific problem. BUT. Is the <head> data placed there by form, or FTP? If it appeared there out of nowhere, most likely someone used an XSS attack, or physically found a security hole and modified your files. If you're wanting to get rid of it from a form, use the strip_tags function, else change your passwords... Link to comment https://forums.phpfreaks.com/topic/187987-stop-a-script-from-running-on-page/#findComment-992489 Share on other sites More sharing options...
jeremy0 Posted January 11, 2010 Share Posted January 11, 2010 bad, bad, bad. not sure if this was the same trying to insert into this forum... Link to comment https://forums.phpfreaks.com/topic/187987-stop-a-script-from-running-on-page/#findComment-992523 Share on other sites More sharing options...
Thauwa Posted January 11, 2010 Author Share Posted January 11, 2010 Thanks for the advice. My situation is that the erroneous code is not 'in' the coding, it virtually comes into being every time I visit the page. And I will change my passwords. . Thanks for strip_tags() anyway. Link to comment https://forums.phpfreaks.com/topic/187987-stop-a-script-from-running-on-page/#findComment-992741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.