My Frugal Tech WordPress Blog Support Fri, 15 Aug 2014 22:33:51 +0000 en-US hourly 1 HostGator Coupon Code: 50% off Hosting and Domains Tue, 15 Apr 2014 18:06:05 +0000 HostGator Coupon Code

HostGator Coupon Code: 50% off Hosting and Domains

HostGator is having a great tax relief sale by offering a new HostGator coupon code! Today, April 15th only, enter coupon code TAX2014 and you'll get 50% off all new hosting packages, plus 50% off select domains.

This is one of the best offers I've ever seen from HostGator! If you're interested in new hosting or another domain name, act now and save big.

HostGator Coupon Code
TAX2014 - 50% off all new hosting packages + 50% off select domains
Valid April 14, 2014 only

]]> 0
GoDaddy Domain Name for $0.99 Sat, 04 May 2013 02:00:09 +0000 GoDaddy

Looking to start a website? Check out these great GoDaddy domain name deals!

Currently at GoDaddy, you can register any new domain name for a year for just $0.99! Simply enter coupon code SMB99F at checkout to receive this price. Normally, these cost $11.99 or more!

If you do decide to purchase a domain, you will have to renew it every year. Be sure to check the GoDaddy emails for discount codes to lower the price. always has some great GoDaddy coupon codes listed too.

Plus ICANN fee of $0.18 per domain name per year for .COM. Offer valid for residents of the U.S. and Canada only. Applies to the first year only of one new registration per customer. One use per code per customer. Cannot be used in conjunction with any other offer, sale, discount or promotion. Customers may not use gift cards, CCAvenue, In-Store Credit, PayPal, or AliPay to redeem this offer. Offer expires after 10,000 redemptions or at Go Daddy's discretion (whichever comes first).

]]> 0
HostGator: 30% off Hosting + $1 off a Domain Name Tue, 30 Apr 2013 22:25:40 +0000 HostGator

In the market for new website hosting? HostGator has a great new coupon code available to use. Through May 15, 2013, take 30% off the first invoice of any hosting package you choose at HostGator with coupon code spring30. You can also get $1 off the purchase of any domain name by using the same coupon code.

HostGator Coupon Code
spring30 - 30% off first invoice of hosting + $1 off domain name
Valid through May 15, 2013

]]> 0
How to Redirect Affiliate Links to Your Ebates Referral Link Fri, 11 Nov 2011 00:18:58 +0000 SAH Affiliate

Many of you are upset about's decision to close the Very Important Blogger affiliate program. Or, maybe the recent events that have occurred have made you question the integrity of ShopAtHome.

If you've decided not to promote the cash back company anymore, what do you do with the affiliate links already on your site? Don't give ShopAtHome those anchor links! Instead, redirect the existing links to another cash back site, like Ebates.

To accomplish this, simply insert the following code into your theme's functions.php file (or custom_functions.php). Make sure to replace YOUR LINK with your Ebates referral link.

If you're using the Thesis theme for WordPress, select the Custom File Editor under the Thesis menu. Change the file you're editing to custom_functions.php, then paste the following code at the bottom of the file, before the ?> (if there is one).

function replacesah($text) {
	$return = str_replace('href="', 'href="YOUR EBATES LINK"', $text);
	$return = str_replace('href="', 'href="YOUR EBATES LINK', $return);
	$return = str_replace('target = "_blank" href = "#', 'href = "#', $return);
	$return = str_replace(' target = "_blank">', '>', $return);
	return $return;
add_filter('the_content', 'replacesah');
add_filter('comment_text', 'replacesah');

Save the file, and you're done! All links that contain will now be redirected to your Ebates referral link automatically!

]]> 10
10 Ways to Secure Your WordPress Based Website Thu, 29 Sep 2011 01:48:26 +0000

If your WordPress site has ever been hacked, or you'd like to prevent it from being hacked, here are a few tips on how to secure your WordPress based blog. Please contact me if you require assistance with any of the tips below.

1. Use Secure Passwords

I hope this is obvious to most of you, but passwords like "password" or your pet's name are not secure. You should be using a password that's at least 10 characters long, and it should contain uppercase and lowercase letters, numbers, and special symbols. The more characters there are in your password, the less chance you have of getting hacked.

One of the best ways to get a secure password is to use an online password generator.

2. Don't Use Admin As Your Username!

If you are using admin as your username, change it immediately! If your username is admin, hackers already know half of what they need to log in.

Create a new account for yourself in the Users panel of WordPress. Log in to that new account, then delete the admin account. When you delete the account, make sure to attribute the posts to your new account!

3. Keep Up To Date

If you're using an old version of WordPress, there are likely many security vulnerabilities that could result in your site getting hacked. The same is true for plugins, so keep those up to date!

4. Change Permissions

Generally, permissions for files and folders should be set as follows. Use a FTP client like FileZilla to make these changes.

  • Folders: 755
  • Files: 644

5. Hide WordPress Version

Your WordPress version gives hackers ideas about how to best attack your site. Place this code in your theme’s functions.php file to hide the WordPress version.

<?php remove_action('wp_head', 'wp_generator'); ?>

6. Add Authentication Keys

Take a peek at your wp-config.php file and see if it includes authentication keys. If it doesn't, visit the WordPress API and grab your random keys. Here's what an example file would look like:

define('AUTH_KEY',         'N4 <I0 ~l70/=<y>BTvm9m.zX^N+4L@OK~;=,JqXZb58V6exiR_R^QSm|z0-Ts+N');
define('SECURE_AUTH_KEY',  '=j+({-GRWxYbAU[-|tfU@_2[p>:Yl(VV3uq}ZdM) h)cG+/anf}c,}{@oVD8 kzl');
define('LOGGED_IN_KEY',    'wK:WK:)[0.d`5k;r&[~8.3DcuOee?:W9!b$]odZ^v/(IiMdb0O?<IB?mdHf3`VCC');
define('NONCE_KEY',        'mG-VUfq/A4:?3}a|B<*NdGyk^wE*_`zRJX[VVfvm&y/B;%9O[bX/A5j3rkW*d.jA');
define('AUTH_SALT',        '2>N6igpu*Idk+%=&6]Z4Vc)-;/BOdiec0=N?sgcWK4$|T8kJP1>]/Nn%r*QP9|n^');
define('SECURE_AUTH_SALT', 'F#9^SVxj6ZO_*J0%CGUFK}P !q-v<N(Is|h@<N,ze6sQ+%n@fk[-y-zBJQS!:hIs');
define('LOGGED_IN_SALT',   'evjn3aEM0UA8UF|du|I]WSG.i_B|@)^=.-5-qY)p}m9[kwVD|gjVOj[l_(?S9W%<');
define('NONCE_SALT',       ':YLC?hr7D<))Jt9S;U#+7c9Nsk148rImy;M8NWHCEYaqr0he]tE}JV9vrRtE/ppe');

7. Hide Login Errors

While it's useful to know why you can't log in to your blog if you entered your password wrong, it's also useful to hackers. Place this in your theme's functions.php file to hide the error message:

add_filter('login_errors',create_function('$a', "return null;"));

8. htaccess Security Rules

Place the following rules in your htaccess file. These rules protect the htaccess and wp-config.php files, disables directory browsing, and disables the server signature.

# Protect htaccess
<files .htaccess>
order allow,deny
deny from all

# Disable server signature
ServerSignature Off

# Protect config
<files wp-config.php>
order allow,deny
deny from all

# Disable directory browsing
Options -Indexes

9. Install Security Plugins and Services

Some of my favorite security plugins are WP Security Scan, Wordfence, and Login Lockdown.

Website Defender is a service that scans your server for any changes that have occurred. It will send you an email if there is something suspicious going on so you can investigate further.

10. Change Database Table Prefix

This can be completed simply with the WP Security Scan plugin. Select the Database tab under the plugin, and back up your site first. Enter a new prefix and hit Start Renaming.

]]> 8
Server Hacked? I Can Help! Sun, 25 Sep 2011 15:48:33 +0000 Hacked by Tiger M te

If your site is hosted on InMotion Hosting, you may have been greeted to a screen like the one above this morning. A vulnerability has been found in the InMotion servers that allowed someone to hack most of the sites hosted there.

If your site was compromised, you will need to replace your index.php files with fresh copies. If you have no idea how to fix it, let me help! For $25, I will log in to your server and fix the problem for you. If you would like, I can also install some security protection, so the chances of this happening again are slim.

To submit a request for help, please contact me. We'll be in touch as soon as possible.

]]> 0
Sorting Google Custom Search Results by Date Fri, 16 Sep 2011 21:59:03 +0000 Google Custom Search Results

So now that you've implemented Google Custom Search into your site, you may be wondering how you can sort the results. By default, Google does not sort the results at all. You may wish to sort by date to have your most recent posts appear at the top.

Here's how you can do that!

  1. Log in to Google Custom Search.
  2. Click on the Control Panel link next to your search engine.
  3. Click the "Advanced" link on the left hand side, then in the "Context" section, click "Download in XML format".
  4. Open the downloaded file in a text editor.
  5. Find the <BackgroundLabels> section of the file. Right before the </BackgroundLabels> line, add the following:

    <Label name="recent4" mode="BOOST" />

  6. Save the file and go back to the Google Custom Search control panel.
  7. Under the "Context" section, click "Choose File", navigate to the file you've just edited, and click "Upload".

That's all there is to it! Your posts should now be sorted by date, with the most recent posts on the top of the results page.

]]> 2
Monetize Search Results with Google Custom Search Sun, 28 Aug 2011 22:06:48 +0000 AdSense Custom Search

Are you monetizing your search results page with Google ads? If not, you're missing out on some money! Here's how to create a Google AdSense search form, and also how to place the results page on your site.

Monetizing Your Search Results Page

  1. Login to your Google AdSense account and click on the "My Ads" tab.
  2. Click "Search" on the left hand side, then click "New custom search engine".
  3. Fill out the form, being sure to select "Only sites I select". Type your main site URL in the text box that appears below that option.
  4. Create a custom channel for your search pages so you can track the ROI easier.
  5. Under "Ad and Search Results Style", customize the colors to match your site.
  6. Important: You MUST choose to "display results on my website using an iframe"! Type in the URL where you want your search results to appear. For instance:
  7. Change the width of the results area to the width of the main content section on your site.
  8. Select "Top and Bottom" for ad location, agree to the Terms of Service, and save.

The code for your search form and page will now be displayed. Copy and paste the search box code into a text widget, and place it in your sidebar. Delete the JavaScript portion at the bottom. Your code should look like this:

Next, you'll be placing the search results code on a page, so your search results show up on your site. Create a new page named "Search", or whatever you specified for your search results URL in AdSense. Switch to HTML view and paste the search results code into the page. It should look like this:

That's it! You're done. Enjoy your new monetized search results! :-)

]]> 2
Enable Hotlink Protection for Specific Sites Mon, 22 Aug 2011 04:33:02 +0000

If you read my previous post on hotlinking, you may be wondering how you can block these offending sites. Often, enabling hotlink protection will break your newsletters and feeds, so I recommend blocking individual sites.

To block specific sites:

  1. Open up your cPanel and visit the File Manager once again. This time, select Web Root in the pop up box. Also, check the "Show Hidden Files (dotfiles)" box.
  2. Web Root FTP
  3. Select the .htaccess file and click Edit. Click Edit again in the pop up box.
  4. Insert the following code at the very top of the file. Replace the domain as necessary. For example, if were hotlinking your image, enter
  5. # Hotlink Protection
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(.+\.)?domainhere\.com/ [NC]
    RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
  6. Repeat for other offending domains and save the file.

This is what the code has done. Here's the image before:

Hotlink Before

And here's what it looks like after:

Hotlink After

As you can see, the image is not being displayed, and is not using any bandwidth.

Don't know how to find out if your images are being hotlinked? You can find out through a simple AWStats hack.

]]> 0
Identify and Stop Image Hotlinking with Awstats Mon, 22 Aug 2011 09:10:53 +0000 Stop Image Hotlinking

I'm sure many of you are familiar with the term image hotlinking. It's when someone links to your image and uses up your bandwidth. It's very frustrating, because many times, these hotlinkers are not crediting you, and they may also make you exceed your bandwidth limit.

There is a stats tracking application installed on most of your web servers that can help identify and stop hotlinkers. It's called AWStats, and should be available right from your cPanel.

First, we're going to enable AWStats. To do so:

  1. Log in to your cPanel. Most of the time, you can go to, or this link is likely in an email your host sent you.
  2. Scroll down to the Logs section and click Choose Log Programs.
  3. Check the box underneath AWStats and click Save.
Awstats Select

Now, click on the AWStats button, and click on the magnifying glass next to your site name. You should see some stats in this new page. You're now ready to insert the code to track hotlinkers.

To insert the code to track hotlinkers:

  1. Return to your cPanel, scroll to the Files section, and click on the File Manager. If a box pops up, make sure you select Home Directory, then click Go.
  2. FTP Home Directory
  3. A new window will open with your file manager loaded. Double click on the tmp directory and double click on the awstats directory.
  4. Select the file named "" and click Edit in the toolbar. Click on the Edit button in the pop up box.
  5. Search for "AllowToUpdateStatsFromBrowser". Change that line so it reads as follows:


  6. Scroll all the way to the bottom of the file and paste this code in, making sure to change the domain name:
  7. #
    # hotlink
    ExtraSectionName1="Hotlinking pages"
    ExtraSectionCodeFilter1="200 304"
    ExtraSectionFirstColumnFormat1="<a href='http://%s' target='_blank'>%s</a>"
  8. Click Save Changes in the upper right corner, then close the file editor.

You're all set to track hotlinkers! To see who is hotlinking your images, follow these steps:

  1. From your cPanel, click on AWStats.
  2. Click on the magnifying glass next to your site.
  3. Next to where it says Last Update, click on the Update Now link.
  4. Look in the bottom left corner for a link that says "Hotlinking pages". This is where you see the hotlinkers! Click "Full list" to see the complete list.

Once you have identified the hotlinkers, you might consider sending them an email telling them about what they're doing. Or, you can just block your image from appearing on their site. This is a separate topic and will be covered in an upcoming post.

]]> 7