Rickrolling with Redirects ๐Ÿ‘บ

I was inspired by this tweet ๐Ÿ‘‡ from Liam Hammett to write a brief post on rickrolling people who try to break into your site using common URLs.

A lot of websites use the same tech (Wordpress), and thus some of the same URLs are used for logins and admin pages. Which makes them easy targets for jerks.

With Wordpress those paths are most commonly:

Luckily if your site is a static site, you donโ€™t have to worry about those particular login URLs doing anything.

When I saw the above tweet from Liam, I thought it would be fun to put together my own version of the script for my site. I donโ€™t currently use a CMS on my live site so Iโ€™m including both the /admin and /login urls. If you have a live CMS you could exclude those.

My _redirects Script

This script uses Netlify redirects in order to send people who visit these urls to the award winning 1987 debut single from Rick Astley that we all know and love. If you host your site with Netlify you can add this script to the root of your site and do the same.

You can see this in action by trying to go to https://colingallagher.me/wp-admin

Rick Astley Dancing

Categories

Tags