Jared

For ‘The Record’ – Stop Calling!

Sunday comics, in my opinion, are the best part of the entire newspaper. The highlight of my Sunday is coming home from church, going to the local coffee shop, and reading the Sunday Comics over a cup of coffee.

Paying the news stand price stopped making sense so I purchased a Sunday subscription to a New Jersey Newspaper called ‘The Record’ at a special promotional discount. What joy, getting the comics for less, every week! When the promotion expired I didn’t bother to renew and was satisfied letting the subscription lapse.

That was over three years ago and the joy is long gone. I’m still receiving annoying telemarketer calls from The Record Newspaper to re-subscribe despite numerous requests and emphatic assurances that I have moved and no longer with to subscribe. Please, stop calling me.

Bookmark – Apache URL Rewrite to Control Access

Was looking for some quick examples to block access to URL’s based on a rewrite rule and found this blog post: http://www.netshinesoftware.com/blog/restricting-access-to-a-url-by-ip-address-using-mod-rewrite/ I’m copying the best bits here for easy reference.

Redirect traffic from specific hosts with specific query string
RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^123\.255\.123\.255 [OR]
RewriteCond %{REMOTE_ADDR} ^124\.255\.124\.255 [OR]
RewriteCond %{REMOTE_ADDR} ^125\.255\.125\.255
RewriteCond %{QUERY_STRING} option=com_my_special_component [NC]
RewriteRule ^(.*)$ index.php [F,L]
Don’t redirect traffic from these hosts with specific query string
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^123\.255\.123\.255
RewriteCond %{REMOTE_ADDR} !^124\.255\.124\.255
RewriteCond %{REMOTE_ADDR} !^125\.255\.125\.255
RewriteCond %{QUERY_STRING} option=com_my_special_component [NC]
RewriteRule ^(.*)$ index.php [F,L]