Web development tools

From IT Wiki
Jump to navigation Jump to search

Checking website

Cloudflare restore original visitor IP

If you can't install mod_cloudflare, or if there is no Cloudflare plugin available for your CMS platform to restore original visitor IP, you would want to put this code in your site in or before the <body>:

<?php if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))

$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];

?>

Cookie Free Domains

Device testing

  • MobileTest.me - Test your websites in smartphone & tablet emulators.
  • Screenfly - See how a website looks on different devices.

Editing tools

  • Color Hex Color Codes - Color-hex.com gives information about colors including color models (RGB,HSL,HSV and CMYK), Triadic colors, monochromatic colors and analogous colors calculated in color page. Color-hex.com also generates a simple css code for the selected color. Html element samples are also shown below the color detail page.
  • Title Case Capitalize - Automatically Capitalize Your Title
  • X-Icon Editor - Free online favicon creator.

php error logging

To prevent the logging of php warnings, add the following to your php.ini file (note: if error_reporting = something else, change it to this):

error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING


You also may need to set the folder to use the proper php.ini file. Add the following to your .htaccess file:

# Make php.ini recursive (affect child folders)

suPHP_ConfigPath /home/username/public_html/foldername


Security

See also: Hardening WordPress
  • SSL Server Test - This free online service performs a deep analysis of the configuration of any SSL web server on the public Internet.
  • Sucuri Security - Scan your website.

php