13.09.2016 Views

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contents<br />

xxiii<br />

<strong>Web</strong> Server Configuration 380<br />

Commercially Hosted <strong>Web</strong> Applications 382<br />

Database Server Security 383<br />

Users <strong>and</strong> the Permissions System 383<br />

Sending Data to the Server 384<br />

Connecting to the Server 384<br />

Running the Server 385<br />

Protecting the Network 385<br />

Install Firewalls 386<br />

Use a DMZ 386<br />

Prepare for DoS <strong>and</strong> DDoS Attacks 387<br />

Computer <strong>and</strong> Operating System Security 387<br />

Keep the Operating System Up-to-Date 387<br />

Run Only What Is Necessary 388<br />

Physically Secure the Server 388<br />

Disaster Planning 388<br />

Next 390<br />

17 Implementing Authentication with <strong>PHP</strong> <strong>and</strong><br />

<strong>MySQL</strong> 391<br />

Identifying Visitors 391<br />

Implementing Access Control 392<br />

Storing Passwords 395<br />

Encrypting Passwords 397<br />

Protecting Multiple Pages 399<br />

Using Basic Authentication 399<br />

Using Basic Authentication in <strong>PHP</strong> 400<br />

Using Basic Authentication with Apache’s .htaccess<br />

Files 402<br />

Using mod_auth_mysql Authentication 406<br />

Installing mod_auth_mysql 406<br />

Using mod_auth_mysql 407<br />

Creating Your Own Custom Authentication 408<br />

Further Reading 408<br />

Next 408

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

Saved successfully!

Ooh no, something went wrong!