Search engine

Question by anomyn92:
Someone hacked a website that I made, and I am wondering how to block that. (more details below)?

I created a website as a part of a week-long game we played in one of my classes. Someone in my class told me later that week that they had hacked my website, but felt bad about it and changed it back. (other people in my class confirmed seeing the edit) They had changed some of the text on the page. They would not tell me how they did it, but they stated that they used javascript. I have been reasearching online, and I think that they used either XSS (cross-site scripting) or script insertion (probably the later of the two), but I do not comprehend it. I get the general concept of code insertion, but I do not comprehend how they get the URL to direct the user to the altered html instead of the regular html. (for reference purposes, I used google page creator) So my question is, how did they hack it, and how do I counter it? I thought that since I used a google product, my site would be secure (as opposed to using my home computer).


——————————————

Answer by Sly_Old_Mole
Give us the link to your site & i will check it out.

——————————————
Add your own answer in the comments!