This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 8. Some Web sites generate content by retrieving data from a database and inserting it into a template using PHP or CGI each time the site is accessed. Why is this practice often a poor idea? In many cases, the same data is generated each time a given page is accessed, unnecessarily using CPU and disk resources for each access. 26 2 Using resources unnecessarily can result in pages being unavailable when the system load is high. 9. Asation. 10. Part of a Web site is a private intranet and is accessed as http://exam-ple.com/intranet. Describe how you would prevent people outside the company from accessing this site. Assume the company uses the 192.168.0.0/16 subnet internally. a. Insert the following lines in httpd.conf : <Directory /var/www/html/corp> Order deny,allow Deny from all Allow from 192.168. </Directory> b. Create the following .htaccess file in the intranet directory: Order deny,allow Deny from all Allow from 192.168....
View Full Document
- Apache server, security risk, Apache server process