Performance & Diagnostic Tools
DNS Checker
Perform a quick lookup for any domain name to check DNS data collected from multiple locations worldwide to confirm propagation.
PageSpeed Insights
Google's official tool to report on the real-world performance of a page for mobile and desktop devices.
WebPageTest
Run advanced speed tests from multiple locations using real browsers to generate rich diagnostic waterfall charts.
SSL Server Test
Perform a deep analysis of the configuration of any SSL web server on the public Internet to ensure compliance and security.
Online Generators
Regex101
The ultimate tool for building, testing, and debugging Regular Expressions in PHP, JavaScript, Python, and more.
Real Favicon Generator
Generate the exact favicon code and dimensions needed for all modern platforms, iOS Touch icons, and Android apps.
CSS Pattern Generator
Design seamless patterns using pure CSS. Tweak colors and geometric shapes to copy perfectly lightweight backgrounds.
XML Sitemap Generator
Quickly crawl a site and generate an XML sitemap to submit to Google, Bing, and other search engines.
Design & UI Resources
Server & Code Snippets
PHP Snippets
© <?php echo date("Y"); ?>
<?php
if (empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] === "off") {
echo "This is not HTTPS";
} else {
echo "This is HTTPS";
}
?>
<?php
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https://" : "http://";
$requestURI = $protocol . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
echo $requestURI;
?>
.htaccess Snippets
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
<IfModule mod_deflate.c>
# Compress common file types
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
</IfModule>