P5-data-validate-uri

Jul 20, 2023

Common data validation methods for URIs

This module collects common URI validation routines to make input validation, and untainting easier and more readable.

All functions return an untainted value if the test passes, and undef if it fails. This means that you should always check for a defined status explicitly. Don’t assume the return will be true.

The value to test is always the first and often only argument.

There are a number of other URI validation modules out there as well. This one focuses on being fast, lightweight, and relatively ‘real-world’. i.e. it’s good if you want to check user input, and don’t need to parse out the URI/URL into chunks.

Right now the module focuses on HTTP URIs, since they’re arguably the most common.



Checkout these related ports:
  • Zope213 - Object-based web application platform Version 2.13
  • Zola - Fast static site generator
  • Zgrab2 - Fast Go application scanner
  • Zerowait-httpd - Lightweight and fast http server
  • Zenphoto - Simpler web photo gallery
  • Zend-framework - Framework for developing PHP web applications
  • Yuicompressor - The Yahoo! JavaScript and CSS Compressor
  • Ytdl - YouTube downloader written in Go
  • Yt-dlp - Command-line program for downloading videos from various platforms
  • Youtube_dl - Program for downloading videos from various services
  • Yourls - Your Own URL Shortener
  • You-get - Dumb downloader that scrapes the web
  • Yaws - Web server for dynamic content written in Erlang
  • Yarr - Yet another rss reader
  • Yarn - Package manager for node, alternative to npm (meta port)