• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Petersen Media Group

Petersen Media Group

We help you spend less time ensuring your site is there, and more time making it profitable.

  • Home
  • About Us
  • FAQs
    • WordPress Hosting
    • Hosting Services
  • Benefits
  • Services
    • Choose your plan

Archives for March 2013

March 25, 2013

Lock Down Your WordPress Login Screen

Login ScreenHat tip to @norcross for this login page security code. I can’t claim any credit for this, but it deserves to be shared. I’ve recommended using a login monitoring plugin before. On WP Engine, Limit Login Attempts is a mandatory plugin. I’ve had a client having problems recently where someone on their IP address is attempting and failing to log in. This is creating a lockout for her valid attempts.

The natural solution is to block the login screen. Unfortunately, in this case, blocking the IP address in the .htaccess file won’t help any because that is my client’s IP address. Like usual, I posed the situation to my Twitter crowd and got an elegant solution in minutes from @norcross – seriously, if you’re not following Andrew Norcross, you are missing out.

Place the following code in your theme’s (or child theme’s) functions.php file and find/replace each “question” and each “answer” with your own words. It’s safe to assume that this will block 99.999999999% of attempts to access your login page since bots don’t look for such addresses and it adds an additional wall to break through. If you’ve got excellent hosting with proper permissions and firewalls, this locks your dashboard down – hard. To read more about the various types of hosting, check out my page on hosting.

/*
* Check the URL of the WordPress login
* page for a specific query string
*
* assumes login string is
* http://www.your-site.com/wp-login.php?question=answer
*/
add_action( 'login_init', 'login_stringcheck' );
function login_stringcheck() {

     // set the location a failed attempt goes to
     $redirect = 'http://www.google.com/';

     // missing query string all together
     if (!isset ($_GET['question']) )
          wp_redirect( esc_url_raw ($redirect), 302 );

     // incorrect value for query string
     if ($_GET['question'] !== 'answer' )
          wp_redirect( esc_url_raw ($redirect), 302 );

}

WordPress Tips Login Attempts,  Login Screen,  Wordpress Login

March 11, 2013

What Is Your Work Worth?

Close up of vintage typewriter machineThere are a heck of a lot of us doing this “web thing” today. I read an article a few months back that geeky jobs writing code, managing databases, and multi-level problem-solving are the most in-demand jobs on the market with way more positions than there are people. It’s a programmer’s market right now and you just about have to try to not get enough work. Seriously. If you’re not booked solid now, in March of 2013, you’re doing something seriously wrong. Bill Erickson has a great article on this for consultants, in particular.

I’ve got a lot of thoughts on that and what to do about it — some of you know I am working on, and I’ll announce it widely soon. (I should probably at least tell my parents first.) Then I was reflecting on a chat I had with Jared Atchison last week month he said that people in our position don’t last very long. He’s right. If they need benefits, can’t weather the ups and downs because they suck at managing a business, or they suck at client interactions, then they go to an employer with a position that more or less makes them happy.

To be clear, I won’t fault anyone for taking a job to do what’s best for their family – some of my best WordPress developer friends have quit being a small fish in a big pond and taken jobs, even just last week in one case. It’s a personal decision – I’m here to encourage those who are at the 10-40 client mark and have a lot of volatility. Some people benefit from joining a team to enhance their careers that would otherwise be an uphill battle alone – programmers and designers alike. Three of my favorite people have joined teams for that purpose.

Heck, I’ve almost thrown in the towel twice. Both times I was broke and desperate, but I couldn’t shake the shame I’d place on myself for “failing” by my standards and would never be happy making in a week what I often made in a day or less. I was tempted to go back to my old employer with great benefits, but I don’t fit under management very well because there are precious few true leaders in those positions, so if you have a great leader at the helm, then you’re very blessed. I’m a rebel and enough of a visionary that I can’t be molded like that.

The million dollar question

What is your lifestyle worth? By that, I’m asking, “what price would have to be paid by an employer to quit what you’re doing?” We all have a price. What’s yours? You can no longer decide you don’t feel well enough to get up at the crack of dawn hour and sleep in until 8am. Traffic sucks, and now you actually have to get dressed to go to work. You have one, two, or maybe even 5 people making the decisions to hire and fire and if one of them has you in their cross-hairs, you’re gone. Jobless. Again. Feeling worthless because someone didn’t value you enough to keep paying you a pittance.

My answer might shock you

I’ve come up with a price. I’ve had it ever since I had more than 50 regular clients paying me every month, quarter, and year in many varying amounts. I’m now at 180 clients on a regular basis and many of them pay me monthly or annually with newcomers and redesigns being larger ticket items. I’d have to be fired by over 100 individuals and most new inquiries in order to be in that prior scenario

My price is $1,000,000 per year. Note, that’s not what I earn each year (yet /grin) but what the price of the risk of putting all of my eggs into one basket that can be crushed at a moment’s notice. It’s unlikely that I would add $1M to an employer’s bottom line in my first year to make up for my salary and benefits overhead, so it’d be for a long-term goal. That said, I’m very happy to do what I do now and would do it for free if that was realistic – which it’s not – and it would take something very grand to pull me away from this. Why would I want to put all I’ve worked for in jeopardy for a salary that can be cut off like the electricity? My purpose and passion extend beyond what happens 9-5 M-F in our office above the garage.

Do epic stuff

You don’t have to make a million dollars per year or have 50k Twitter followers to do something epic. I’m just an ordinary guy doing ordinary stuff extraordinarily well. It’s making a difference to those people I work with. My friend Steve Farber has a saying,

“Do what you love in service of those who love what  you do.”

Being a servant leader and serving your clients is not below you. Instead, it will propel you to new heights.

Business Tips Employer,  Worth

Primary Sidebar

Recent Posts

  • Change Genesis .site-title H1 Wrap on the Homepage
  • The Year of 2017 Goals for Petersen Media Group
  • Forever to Finish, Gone in the Blink of an Eye: 2016
  • Add Genesis Custom Post Type Archive Settings
  • Use Minified Stylesheet with Genesis Themes with Front-Page Customizer Backgrounds

Recent Comments

  • Mike Hale on The Year of 2017 Goals for Petersen Media Group
  • Little Shiva on The Year of 2017 Goals for Petersen Media Group
  • Luke Cavanagh on A Response to the WordPress Customizer Expansion: Removal
  • Chris Johnson on Why Partnerships Often Don’t Sail
  • divakara ganesh on Two Things You Need to Do to Your Genesis 2.2 Theme

Archives

  • January 2017
  • August 2016
  • May 2016
  • October 2015
  • September 2015
  • August 2015
  • June 2015
  • April 2015
  • December 2014
  • November 2014
  • October 2014
  • August 2014
  • May 2014
  • April 2014
  • February 2014
  • January 2014
  • November 2013
  • September 2013
  • July 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • January 2000

Categories

  • Business Tips
  • Genesis Framework
  • Investments in You
  • Products
  • Technology
  • Uncategorized
  • WordCamp Slide
  • WordPress Tips

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Footer

Petersen Media Group was founded on the idea that good work, transparent and honest communication, and radical generosity are the keys to success in business and life.

The WordPress community has shown up over and over to prove this to be true.

We look forward to being entrusted with your business.

Navigation

  • Home
  • About Us
  • Blog
  • Choose Your Plan
  • FAQs
  • Contact
  • Disclaimer

This site is independently owned. It is not sponsored by StudioPress, WP Engine, WordPress, or Automattic Inc.

Theme and various assets used with permission from SEOThemes and GenesisSiteCare.

Copyright © 2019 · Petersen Media Group