ranking Sort Sort   |   date Sort Sort   |   member Sort Sort

Date Submitted Wed. Mar. 3rd, 2010 11:13 AM
Revision 1
Beginner wizard04
Tags DOMAIN | Email | IP | mailto | normalize | Parse | URI | URL
Comments 0 comments
Functions for validating, parsing, and normalizing URIs and their parts.
If you find any errors, please leave a comment.

parseURI(str) splits a URI into its parts
parseQueryNumeric(str) splits a query string into its name/value pairs; returns a 2-D array
parseQueryAssociative(str) splits a query string into its name/value pairs; returns an associative array
parseURL(str) splits a URL (i.e., http(s) scheme URI) into its parts
normalizeURLDomain(domain) converts an obscured URL domain to a more readable one
normalizeIPv4(ip) normalizes an IPv4 address
normalizeIPv6(ip) normalizes an IPv6 address
normalizeURLPath(path) converts an obscured URL path to a more readable one
parseMailto(str) splits a mailto scheme URI into its parts
normalizeEmailAddress(str) converts an obscured email address to a more readable one; unfolds and removes comments
fixURL(str, domain) attempts to fix a URL if needed
fixHyperlink(str, domain, allowMailto) attempts to fix a hyperlink address (http(s) or mailto) if needed

For URLs, note that IPvFuture addresses are not supported.
Date Submitted Sun. Jul. 12th, 2009 10:07 PM
Revision 1
Scripter Cloudgen
Tags DOMAIN | Email | Expression | Level | Regular | Top
Comments 0 comments
The regular expression include the following:
Local part include (at least 2 characters):
1. Uppercase and lowercase English letters (a-z, A-Z)
2. Digits 0 through 9
3. Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
4. Character . (dot) provided that it is not the first or last character, and provided also that it does not appear two or more times consecutively.

Top Level Domains include:
1. country-code top-level domains (ISO 3166)
2. generic top-level domains
3. sponsored top-level domains
4. infrastructure top-level domain

Detailed Discussion will be found: The regular expression for checking email
Date Submitted Sun. May. 20th, 2007 10:58 PM
Revision 1
Scripter SecondV
Tags allow | deny | DOMAIN | PHP | post
Comments 3 comments
This small snippet will not allow _POST requests from a 'foreign' domain. It relies on the HTTP_REFERER variable.
Date Submitted Thu. Mar. 2nd, 2006 11:23 AM
Revision 1
Syntax Master dannyboy
Comments 0 comments
function to remove a computer from a domai
Date Submitted Thu. Mar. 2nd, 2006 10:39 AM
Revision 1
Syntax Master dannyboy
Comments 0 comments
Get the computer domain with wmi
Date Submitted Thu. Mar. 2nd, 2006 4:21 AM
Revision 1
Syntax Master dannyboy
Tags DOMAIN | valid | VBSCRIPT
Comments 0 comments
check if a string is a valid domain ex.: dsc-services.be