Rick-Rolling Would-Be Hackers

Posted: Reading Time:

One of my biggest pet peeves is that largely popular content management systems like WordPress have the same URL to access the admin portal of any website. If you're a malicious person and you know that a site is on WordPress you could hit website.com/wp-admin and have the opportunity to hack into that site.

Changing the admin route:

I'm a huge believer in Craft CMS as an alternative, which lets you change the admin route without the use of any third-party plugins. For instance, instead of hitting /admin (the default route), you could change it to /manage or /secret-portal or something to make it less obvious to find. 

I've recently embraced the JAMstack, which separates my front-end from my backend through the use of APIs and a static site generator. This means that there is no backend available to the public to try to get into my site to do something nasty. However, that doesn't mean that people still won't try.

Redirecting hackers with bad intentions:

I've hosted my new site on Netlify, a platform to host static assets. Netlify allows you to set up redirects by adding a _redirects file to your repo, instead of managing redirects in an .htaccess file or Apache config. I thought I'd get a little saucy and forward anyone trying to negatively impact my site to where they belong 😈.

Below is my _redirects file if you'd like to give that a go as your starter. Anyone trying to hit any of the routes on the left will be sent to the URL on the right. You can probably guess what youtube video that is...

.env https://www.youtube.com/watch?v=dQw4w9WgXcQ
wp-admin https://www.youtube.com/watch?v=dQw4w9WgXcQ
wp-login.php https://www.youtube.com/watch?v=dQw4w9WgXcQ
users/login https://www.youtube.com/watch?v=dQw4w9WgXcQ
admin https://www.youtube.com/watch?v=dQw4w9WgXcQ
login https://www.youtube.com/watch?v=dQw4w9WgXcQ
users https://www.youtube.com/watch?v=dQw4w9WgXcQ

Are there any common admin URLs that I've missed that I should add to the list? Do you have a web project where you're worried about security and could use some help? Feel free to hit me up, I'd love to hear from you ;). 

Go to the Home Page

Hey there,

I’m a creative designer, developer, and leader obsessed with solving complex problems

Check this Nerd Out!

Go to the Resume Page

Résumé

Experience & Accolades

Over ten years and going strong

Go to the About Page

About Me

Bios & Photos

A story to rival the Star Wars universe

Go to the Professional Work Page

Pro Work

7 Case Studies

Frontier.com, Cosentyx.com, MonsterPainintheAS, PartyCity.com, and 3 others

Go to the Blog Page

Writing

10 Articles

Latest: Reflection: My Year of Building with Raycast

Go to the Contact Page

Contact

Social & Contact Form

Slide into my DMs :)

Go to the Non-Profit Work Page

Non-Profit Work

4 Case Studies

Saved by the Scan, World Ocean School, and 2 others

Go to the Activity Page

Activity

31 Updates

Latest: I just finished listening to the audiobook Build@tfadell (narrated by Roger_Wayne_Jr) only to restart it right away. Inspiring advice from veteran of General Magic, Philips, Apple, Nest, and Google.

Go to the For-Fun Page

For Fun

7 Case Studies

Wash Yo Hands, Baebot.biz, and 5 others