NCATComp410 / comp410_fall_2024

COMP410fFall 2024 semester class project
MIT License
0 stars 0 forks source link

URL #30

Open Folaranmi12 opened 2 months ago

Folaranmi12 commented 2 months ago

Description:

A URL (Uniform Resource Locator) is the address used to access resources on the internet. It specifies the location of a resource, such as a webpage, file, or image, and how to retrieve it. A URL typically consists of several components: Protocol,Domain Name,Path, Query String

Detection Steps:

  1. Check for Protocol: Ensure the URL starts with a protocol like http:// or https://. This indicates how to access the resource.
  2. Look for the Domain Name: After the protocol, a URL will have a domain name, which identifies the website's name, such as example.com.
  3. Identify the Path: If there is a path, it follows the domain name, separated by a forward slash (/). The path points to a specific page or resource on the site.
  4. Examine Query Strings or Parameters: Some URLs may contain a query string starting with a question mark (?), followed by key-value pairs that provide additional information to the server, like ?id=123.
  5. Check for Fragment Identifiers: A URL may include a fragment identifier (preceded by #), which directs to a specific part of the page, such as #section.
mawdogbe commented 2 months ago

What about URLs in modern browsers that have the http:// hidden, is there a way to detect and validate those URLs?

claesmk commented 2 months ago

Looks OK