ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

CIA and Twitter websites were all hacked. How to keep YOUR website from being hacked and protect your website visitors.

Updated on June 20, 2011

How to protect your website from being hacked.

It is not IF a website will be hacked. It is WHEN it will . Protect your site and your visitors.

For everyone who owns a website or blog or if you design websites for a living, the biggest issue every website owner faces today is the fact that their website will be hacked. It is not a question of IF. It is a question of when.

Large and small websites get hacked every day, the CIA, Microsoft, Facebook, Amazon, Ebay, Twitter websites were all hacked as well as over 2 billion other smaller websites.

What's worse is if your website enjoys great search engine rankings on Google and Yahoo, the hackers find your website even faster since they search your website on the major search engines.

It is not a question of IF it will happen. It is a question of WHEN.

How to tell if your website has been hacked:

Some websites make it obvious that they have been hacked, but most of the time, we do not even know when he have been hacked. The hacker goes in silently and does his/her damage and you usually do not find out until one of your website visitors tells you that their antivirus or spyware software reported a virus when they visited your website.

This causes you embarrassment and sometimes lost sales to your customers.

  1. Your website is displaying funky looking characters on your website.
  2. Your customer calls and reports their anti virus software reported a virus or a spyware attack
  3. Your customers call and report a strange popup window on your website (yes, they still popup in 2011 even with modern popup blockers).
  4. Your web hosting company shuts down your website.
  5. You are the webmaster and you find some code inside your website that you, yourself, did not enter.
  6. You notice that the date and time of your web pages last being edited has a more recent modify date then when you last edited your website.

How do hackers break into my website?

First, I need to tell you the 3 major ways that hackers attack your website. Knowing these methods will help you protect your website and your customers or website visitors.

Note: You do NOT need to be technical to understand this. It is important that you are aware of how this is done so you know how to protect yourself.

XSS Attack (Cross Site Scripting)
If you have a website with a form which can be a contact form, a login form, a messageboard, a blog where people put comments into your website or virtually anywhere that people can "type" on your website, you run the risk of being hacked by XSS.

A hacker can add code to your website that sites in your site and launches a malicious program from anywhere in the world that gets transported to your customer's computer. That is when the popups start appearing. That code can steal credit card numbers and personal information from your customer's hard drives and then they can use their credit cards to buy stuff. Worse, they can also sell your credit card information on underground black markets. Hacking is big business, folks, but you can prevent yourself from being sold on that black market.

Database Injection or SQL Injection

This is the biggest threat out there and it occurs when a database is not secure. Website owners who have databases on their websites can all become victims of SQL injection attacks. Hackers can run commands against your database and steal all the hidden information that only YOU are supposed to have access to. They can steal credit card info, phone numbers, email addresses and other information that is personal only to your website visitors. Worse, they can also steal usernames and passwords.

How can you suffer the damage of having your website hacked?

  1. You can and WILL lose online sales.
  2. You website visitors will never visit your website again. Would you?
  3. You could be sued by a website visitor or customer.
  4. All your members have to log into your website and change their passwords and email addresses.

This is serious. Ok. I Get It. Now How Do I Protect My Site?

Usually most web designers don't have a clue. You need an experience web designer who knows how to build a website that WON'T be hacked.

Here are some steps you can take:

  1. Make site your web hosting company is reputable and has the proper security on their server. A website is only as secure as the web hosting company it is with.
  2. If you have a feature where people register and log in through a form, make sure your web designer secures the form against SQL Injection and XSS attacks.
  3. Make sure your web addresses are secure. Yes, hackers can break into your website through your URL (web address). Any ecommerce sites have special web addresses for each product and hackers can break in that way.
  4. If you take credit cards, make sure you have a SSL (Secure Socket Layer) certificate which encrypts credit card information.
  5. Make sure you use a popular merchant gateway like or Paypal who offer more protection to your customers.

In Conclusion

I hope this was helpful and informative. If you own a website, you owe it to yourself and your site visitors to make sure your website is secure from hackers.

It is not a question of IF it will happen. It is a question of WHEN.


    0 of 8192 characters used
    Post Comment

    • hotwebideas profile imageAUTHOR

      Bruce Chamoff 

      6 years ago from New York

      Thanks, alocsin.

    • alocsin profile image


      6 years ago from Orange County, CA

      This is scary stuff. Thanks for not just raising the warning but offering tips to avoid the problem. Voting this Up and Useful.

    • hotwebideas profile imageAUTHOR

      Bruce Chamoff 

      7 years ago from New York

      Thanks, Audrey. I am glad you like this hub. I am also following you as well.

    • vocalcoach profile image

      Audrey Hunt 

      7 years ago from Idyllwild Ca.

      Very helpful information and well-written. I like the steps. Thanks and rated this up and useful.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)