13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

344 Chapter 15 E-commerce Security Issues<br />

diverse networks together as the Internet, security is not one of them.TCP/IP works by<br />

chopping your data into packets <strong>and</strong> then forwarding those packets from machine to<br />

machine until they reach their destination.This means that your data is passing through<br />

numerous machines on the way, as illustrated in Figure 15.1. Any one of those machines<br />

could view your data as it passes by.<br />

Source<br />

Destination<br />

The Internet<br />

Figure 15.1 Transmitting information via the Internet sends your information<br />

via a number of potentially untrustworthy hosts.<br />

To see the path that data takes from you to a particular machine, you can use the comm<strong>and</strong><br />

traceroute (on a Unix machine).This comm<strong>and</strong> gives you the addresses of the<br />

machines that your data passes through to reach that host. For a host in your own<br />

country, data is likely to pass through 10 different machines. For an international<br />

machine, it may pass through more than 20 intermediaries. If your organization has a<br />

large <strong>and</strong> complex network, your data might pass through 5 machines before it even<br />

leaves the building.<br />

To protect confidential information, you can encrypt it before it is sent across a network<br />

<strong>and</strong> decrypt it at the other end.<strong>Web</strong> servers often use Secure Sockets Layer (SSL),<br />

developed by Netscape, to accomplish this as data travels between web servers <strong>and</strong><br />

browsers.This is a fairly low-cost, low-effort way of securing transmissions, but because<br />

your server needs to encrypt <strong>and</strong> decrypt data rather than simply send <strong>and</strong> receive it, the<br />

number of visitors per second that a machine can serve drops dramatically.<br />

Loss or Destruction of Data<br />

Losing data can be more costly for you than having it revealed. If you have spent months<br />

building up your site, gathering user data <strong>and</strong> orders, how much would it cost you in<br />

time, reputation, <strong>and</strong> dollars to lose all that information? If you had no backups of any of<br />

your data, you would need to rewrite the website in a hurry <strong>and</strong> start from scratch.You<br />

would also have dissatisfied customers <strong>and</strong> fraudsters claiming that they ordered something<br />

that never arrived.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!