h4x3d.com

- h4x3d.com

Archive
Tag "vps"

I figured out how to harden wordpress using ssh and some common sense.

I changed ownership (user) of the cache and uploads folder to apache by

chown apache uploads
chown apache cache

to enable apache to write to it

chmod was set to more restrictive value of 755 each instead of easily
exploitable (as it happened on solarvps and zone.net) chmod 777

chmod 755 uploads
chmod 755 cache

giving me the following structure

ls -l /wp-content/

drwxr-xr-x 2 apache psacln 60416 May 3 05:39 cache
-rw-r--r-- 1 comh4x3d psacln 30 Nov 14 03:26 index.php
drwxr-xr-x 83 comh4x3d psacln 3072 Apr 17 12:48 plugins
drwxr-xr-x 9 comh4x3d psacln 1024 Apr 17 12:37 themes
drwxr-xr-x 5 comh4x3d psacln 1024 Mar 25 07:04 upgrade
drwxr-xr-x 3 apache psacln 8192 May 3 05:38 uploads

by that wordpress can upload files to the uploads folder and files can
be created in the cache folder.

to restrict the folders even more I added a
.htaccess file with chmod 644 each

vi .htaccess

for uploads:

Deny from all
Allow from 72.249.95.104 # server IP address

Options -ExecCGI # disallow execution of below files
AddHandler cgi-scriptscript .php .pl .py .jsp .asp .htm .shtml .sh .cgi
# we dont want any dodgy pearl scripts or php to executed

Order Allow,Deny
Deny from all
# deny everything but the
image and text files
Allow from all

# deny
opening those files
Order Allow,Deny
Deny from all

similar file for the cache folder, but instead of the image and doc
files only meta and html are allowed, make sure to remove html from
execcgi line

I hope you appreciate this article,

best,
julian klewes
h4x3d.com

Read More
Solar VPS - Green hosting

Solar VPS - Green hosting

Today I have received an email from Sean at zone.net stating that effective from four months now onwards all VPS (Virtual Private Server) business will be transfered to SolarVPS.

Sean speaks very highly of SolarVPS’ CEO and managing director and excuses for the “crap” level of support that zone.net customers had to endure in the past few months.

The official press release can be found on Solar VPS’ news section. Being transparent about communication is one of the major pillars of decent business – “I like”.

Some famous highlights include the multi-day downtime due to some failure and a for-ages taking check-disk (from 11:48 AM EST(11/7/2008) to 7:19 PM EST (11/9/2008), where as it would be more like 9am to 8pm, frankly)

Also some minor, less exciting downtimes of twelve to twenty hours recently can be recalled by some of you.

My phone-calls to the 001 yank-hotline have been answered but greeted with massive unfriendliness and really low level of knowledge stating “we are aware that our sites (cough and yours) are currently unavailable”.

I am curious what the time at SolarVPS will bring – the mail sent by Sean listed an email address by which management might be contacted directly.

If SolarVPS prolong zone.net’s sponsorship agreement I would be keen to give them a ride.

In the meantime, if you have any other recommendations or comments, feel free to contact me.

Oh- and the new site is coming, I am currently just looking into a way to politely tell IE6 visitors (still 26% over the past few months) to upgrade or switch.

Having worked in a major PR company in the last six month and having experienced the (probably worst) “almost” over-sea like IT support, I see the problems with upgrading, however believe it should be able to replace a seven year old piece of software with something newer (IE7, IE8 beta, Firefox, Opera, Safari, etc).

Read More

If you need to physically “hack” into my server (yiks, why would you), here are the coordinates:

Domain : H4X3D.COM
Primary IP address   : 72.249.95.103
Host         : zone.net
Organization : Colo4Dallas LP
Location     : US, United States
City         :  Dallas, TX 75247
Latitude     :  32°81'48" North
Longitude    :  96°87'06" West
Read More

I posted the following at webhostingtalk.com, but still I believe one or two of you will find interesting here:

Sometime around May I decided to have my website transfered over to zone.net as I outgrew Dreamhost.

Dreamhost, which now offers quite some cool setups (such as pimping up your server by additional ram etc), has kind of “chucked me” off due to excessive CPU use that was triggered by my WordPress install (running WP-Cache of course).
I was told, I outgrew a shared environment and should opt to either switch to their (at this time) 360$/month plan or get another hosting provider. when asked what to get, I was told “a vps with plenty of ram”.

I had a particular setup in mind and was thinking of either joining jaguar pc hosting or zone.net.

What I did like at zone.net at this point was the working live-support. I clicked “live support” – chat now and within seconds I was talking to someone who had a clue and cared about getting me to move over.

Read More

Just wanted everyone to know that this (and other sites) are going to be transfered to a new VPS internally at zone.net.
More news to come soon. Please be aware that comments might get lost due to unsynchronized databases.
Sorry for any inconvenience!

zone.net

Read More

Edit: Google sent me a mail today, saying I was yelling at my visitors to do stuff with ads. How bollox is that? Must be one of their heuristic filters gone mad. Anyway, I changed potions of the site, hope this helps!

Google Adsense is taking the piss at the moment, that is why I changed the layout once more. See the images attached below.
Update: I changed the 468×60 banner to 336×280 in order to not break the layout for visitors surfing at lower screenresolutions (below 1024+). I use 1280×1024 if you wonder about the screenshots.

Before (three column layout)

Adsense layout before

After (two column layout)

Adsense layout after

Current layout (two column)

Adsense layout after another change
Internet Explorer renders it like this:
Adsense layout after another change IE

Update: The new ads are performing very good. In contrast to the mere $3,02 I made yesterday (no kidding), I already earned $7,64 today. Yay for some server money!

zone.net VPS hostingMy website is hosted on a virtual private server by zone.net and costs $65 a month. If you want to help me fund it please donate some money. Thank you a lot!

Read More