Commerce

Website Security MCQs

Practice Website Security MCQs for competitive exams.

Website Security MCQs

Practice questions from this topic.

The developers of PHP deprecated the safe mode feature as of which PHP version.

  1. A. PHP 5.1.0
  2. B. PHP 5.2.0
  3. C. PHP 5.3.0
  4. D. PHP 5.3.1
Report Error

Say I want to change the extension of a PHP file, which of the following statements should I edit to change from .php to .html in the httpd.conf file?

  1. A. AddType application/x-httpd-php .php
  2. B. AddType application/x-httpd-php .asp
  3. C. AddType application/x-httpd-asp .php
  4. D. AddType application/x-httpd-asp .asp
Report Error

Which directive should we disable to obscure the fact that PHP is being used on our server?

  1. A. show_php
  2. B. expose_php
  3. C. print_php
  4. D. info_php
Report Error

Which directive determines which degree of server details is provided if the ServerSignature directive is enabled?

  1. A. ServerAddons
  2. B. ServerExtra
  3. C. ServerTokens
  4. D. ServerDetails
Report Error

Which Apache directive outputs Apache’s server version, server name, port and compile-in modules?

  1. A. ServerSignature
  2. B. ServerName
  3. C. ServerDetails
  4. D. ServerInfo
Report Error

Suppose all web material is located within the directory /home/www. To prevent users from viewing and manipulating files such as /etc/password, which one of the following statements should you use?

  1. A. open_dir = “/home/www/”
  2. B. open_dir = /home/www/
  3. C. open_basedir = /home/www/
  4. D. open_basedir = “/home/www/”
Report Error

The memory_limit is only applicable if _______ is enabled when you configure PHP. Fill in the blank.

  1. A. –enable-limit
  2. B. -enable-memory-limit
  3. C. –enable-memory-limit
  4. D. -memory-limit
Report Error

What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.

  1. A. 10
  2. B. 20
  3. C. 30
  4. D. 40
Report Error

Which one of the following statements should be used to disable the use of two classes administrator and janitor?

  1. A. disable_classes = “administrator, janitor”
  2. B. disable_classes = class administrator, class janitor
  3. C. disable_classes = class “administrator”, class “janitor”
  4. D. disable_class = class “administrator”, class “janitor”
Report Error

Which one of the following statements should be used to disable just the fopen(), and file() functions?

  1. A. disable_functions = fopen(), file()
  2. B. disable_functions = fopen, file
  3. C. functions_disable = fopen(), file()
  4. D. functions_disable = fopen, file
Report Error