URLs can be manipulated to disguise malicious destinations, making URL scanning an essential tool for identifying and blocking deceptive web addresses before they cause harm. Understanding how URLs are structured helps explain why this type of filtering is a critical layer of network security.
URL Scanning & Filtering
URLs can be deceiving. That is, people can sneak certain pieces of information into that URL that can cause harm to our computer. So let's take a look at what that looks like and what URL scanning is.
Essentially, the web is just a bunch of different resources, resources that I need to locate. So we have URLs, universal resource locators, to identify these resources that are on the web, and then get that resource so we can display it on our machine. If I'm on this machine right here, then I pull up a browser, I type in the URL, and it goes and identifies those resources, and then essentially those resources get downloaded onto my machine.
Let's take a deeper dive into this. Uniform, because they all have the same type of format. Resource, because it's locating a specific resource, like maybe it's HTML code or maybe it's a picture. Then the locator, and it's locating this resource.
So how do we identify a specific resource? First of all it has the schema here, and the schema is going to be the protocol, so it's using HTTPS. Then the host. This gets translated into an IP address so the packet can be routed to the proper location, so the packet destination IP address will be whatever DNS lookup determines this domain and this host is. So then it has an IP address to be able to route to that server.
Then what it can do is use this information right here to identify what site it's referencing, because a single server that has a single IP address can have many different sites. So this identifies the site that it's associated with. This is the directory within that site, because it's just a bunch of files and folders and directories. So it's looking in this directory, the resources directory, and it's looking for a specific file. In this case right here it's picture2.jpg, so that's the file. And then there's some other information to help identify specific parts of that file, so we can query or look at a specific fragment of it. In this case right here, with a JPEG, it probably doesn't have that and just has: this is the resource that we're looking at. Then it will essentially download, or grab a copy of, that resource, and that resource will be sent over to the machine and then that machine can display it on the computer.
This all follows the uniform resource identifier. URI is just the format; this defines the format of how to identify certain resources. In this case, what's not usually up in our URL of our browser is this part right here, the user info at whatever. This would be user information for making this connection, so you can make a secure connection. Maybe we're SSHing into something, or maybe we want some sort of secure connection. We put the user in here so that it can identify us as being a specific user.
The thing is, this can be snuck into the URL to trick end users. Right here, where are we going to? We're going to www.google.com. Well, what about this right here? We're not going to www.google.com. It looks like we are going to the site, but look, we've got the at sign. So what we are going to instead is this email address right here. That's where we're going to, and then it's going to interpret this as being the user side of this, in which case this server probably doesn't care what the user side is. So now we're going to what looks like google.com, but we're actually going to another address. It's a way to trick end users.
Just to show you how this works, what we have here is what looks like it's going to www.google.com, but instead we're sending them to www.yahoo.com. So what I'm going to do is pull up a browser and paste it into here. Hit enter. Notice now we've gone to the Yahoo site, not the Google site.
There is different software and devices that can help us do URL filtering. What that means is that it's going to look for little tricks like this to make sure we're not going to the wrong sites, and instead we're sticking to the legitimate sites. So we may want to do some sort of URL filtering.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →