 So, lots of times when you go to a website and you type in the URL, you don't go just that URL. Lots of times you're redirected. For example, on my website, if you go to filmsbychrist.com, you don't just go to filmsbychrist.com, it redirects you to a certain directory on my website, which is the current version of my website. And if you're using something like WGet or Curl, my website redirects you to a shell-based interface for my website for your convenience. I don't know if anybody actually uses it, but I set that up for you. And then lots of times you'll get these URL shorteners, such as tiny URL. Well, what if you want to know what the final destination of that is without going to that page? That's what we're going to do today with Curl. So let's go ahead, jump into the shell and have a look here. So for example, let's just do filmsbychrist. As I said, if I do Curl and then I can do dash s for silent and WGet, that would be the dash q option basically doesn't show you the process of the download, just the output. So we're going to do dash i, which shows the header, and then dash l shows location information. And then we'll just say filmsbychrist.com. And when we hit that, it's going to give us a bunch of information. But we want the lines that say location with a colon, such as this. And so what we can do is we can say grep. And we're going to do dash i because some websites return it with a capital L, some return it with a lower case l. So we're going to dash i for case insensitive. And then we're going to say the character symbol location. And that gives us lines that start with location. So we'll go ahead and hit enter. And you'll see my website, you went to filmsbychrist.com, which forwarded you to filmsbychrist.com forward slash version seven. And then it detected that we're using Curl and it brought you up a directory and then down to the shell directory. And this is the final destination here. So if we want to get the final destination, then we'll just say head dash n1, sorry, not head, but we want tail. So let's redo that. Which will give us the final line there. So our final destination for this is filmsbychrist.com forward slash shell since I'm using Curl and my website detects that. If we wanted to see what the final destination was for a regular web browser, we can say dash user agent. And as I talked about in a previous directory, or previous directory, a previous video, my website, it's not carrying what the user agent is unless it's Curl or Wget. So we can put anything in here, but you can also put an actual user agent for a web browser such as Chrome or Firefox, so forth and so on. So if we do this, the final destination is going to be filmsbychrist.com forward slash version seven or v seven. Let's go ahead and clear all that out and let's try another one. We are going to do the same thing with a tiny URL. So I'm going to come here for this particular one. We will just replace the URL here. Make it a little smaller so you can see everything on one line. We're going to say Curl, user agent. Again, S is for silent, I is for header, L is for location information. The URL and then we're grepping for lines that start with location. And we are just going to see the final line. Let's go ahead and hit enter. And that particular URL will redirect to my Patreon page. Patreon.com forward slash metal X1000 if you want to support for this particular one. The user agent is not important because it will give me the same results. But just depending on the website and whether it's checking the user agent or not, you may want to put that in there. Let's do another one. I have another address here that I can copy over from a different website. Short URL AT, I will put the URL in here. This particular one will redirect to filmsbychrist.com, which will redirect to filmsbychrist.com forward slash version seven, which then will redirect you to my shell directory. So we get that here. So for this particular one, if we wanted to make sure we're getting what a certain web browser would use, we'd put in the user agent for that web browser and we would get the final destination of version seven. So real quick, that's how if you wanted to check where a URL shortener would redirect to or any URL would final destination redirect to, you can do this. Keep in mind that variables may still be passed. Last time you get junk mail and it will be a URL shortened like this. And you may want to know where it goes. A lot of times we'll have individual codes, variables in those URLs. And doing this would still pass those variables. And basically what that's doing is if they sent you an email and you click on that URL, they know it's you because they know who they sent that specific URL to. So they might see that you clicked on this link and now they know to send you more spam because you actually clicked on that link. So keep that in mind. Don't just go to any URL in that aspect. Lots of times people talk about how dangerous it is to click on URLs. Clicking on URLs is not really that dangerous other than the fact that you could be collecting data on you, information on you. So keep that in mind. Anyway, filmsbychrist.com, that's Chris with a K, as you can see on the screen. Links in the description to that and my Patreon page. And as always, I hope that you have a great day.