The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
# SACONFIGSTART | |
# Make sure we get the required score header. | |
rewrite_header subject [SPAM] (_SCORE_) | |
# SACONFIGEND | |
# SA RULES GO HERE | |
add_header all Score _SCORE_ | |
bayes_auto_learn 1 | |
bayes_auto_learn_threshold_nonspam -0.1 | |
bayes_auto_learn_threshold_spam 6.0 |
# WWW redirect | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
# Use HTTP Strict Transport Security to force client to use secure connections only | |
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" |
server.modules += ( "mod_setenv" ) | |
$HTTP["scheme"] == "https" { | |
setenv.add-response-header = ("Strict-Transport-Security" => "max-age=31536000; includeSubDomains; preload") | |
} |
protected void Application_BeginRequest(Object sender, EventArgs e) | |
{ | |
switch (Request.Url.Scheme) | |
{ | |
case "https": | |
Response.AddHeader("Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload"); | |
break; | |
case "http": | |
var path = "https://" + Request.Url.Host + Request.Url.PathAndQuery; | |
Response.Status = "301 Moved Permanently"; |
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> | |
<link rel="apple-touch-icon" href="/apple-touch-icon.png" /> | |
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" /> | |
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" /> | |
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" /> | |
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" /> | |
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" /> | |
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" /> | |
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" /> |
<div itemscope itemtype="http://schema.org/Person"> | |
<meta itemprop="sameAs" content="http://www.linkedin.com/in/denverprophit/" /> | |
<img itemprop="image" src="https://en.gravatar.com/userimage/50779087/d3f0203ad6ca9c82bd2ce67dd3747888.jpg?size=200"> | |
<a itemprop="url" href="https://www.denverprohit.us/"><div itemprop="name"><strong>Denver Prophit Jr.</strong></div> | |
</a> | |
<div itemscope itemtype="http://schema.org/Organization"><span itemprop="name">Denver Prophit Jr.</span></div><div itemprop="jobtitle">Open Source Evangelist</div> | |
<div itemprop="description">Open Source Evangelist dedicated to spreading the news about open source alternatives to commercial software.</div> | |
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
<div><span itemprop="addressLocality">NEW SMYRNA BEACH</span>, <span itemprop="addressRegion">Florida</span></div><div itemprop="postalCode">32168</div> | |
<div itemprop="addressCountry">USA</div> |
/* This script provided under the GNU GPL v3.0 AS-IS. | |
@Author = https://www.google.com/+DenverProphitJr | |
*/ | |
<?PHP | |
# echo '<pre>' . "\n\n"; | |
set_time_limit( 100 ); | |
$time = microtime(); | |
$time = explode(' ', $time); | |
$time = $time[1] + $time[0]; |