MSXML: Access is denied - 80070005 - MSXML4.dll

Recently, I wanted to see if my ex in DC was reading my blog so I ran my referer log against an outdated copy of the MaxMind GeoIP locator database. I figured the database could use some updating so I ran the ImportMaxMindGeoIP.vbs script I posted awhile back, and much like in real life, I received an "Access Denied" error.

Image not found

Web path: https://blog.netnerds.net/images/denied.png

Disk path: /static/images/denied.png

Using Page Bundles: false

Line 63 was basically a simple line that stated: objXMLHTTPindex.Send() Most of the access denied errors on the net referred to POSTing unencrypted data but the script was performing a GET. After about a half hour of troubleshooting, I realized that the URL my script was pointing to was returning an HTTP code of "301: Moved Permanently."

Once I plugged in the new updated URL, the script worked without a problem. So if you're receiving a similar error, be sure to check that the URL hasn't been moved. You can do this by using Sam Spade, Firefox Extensions or just loading up the URL in your browser and seeing if it's redirected to a new location.

As for knowing if the ex is reading my blog, the results were inconclusive. I guess I'll find out soon enough. I mean, I could just ask her, but what's the fun in that? ;)