|
|
|
check for valid domain
2
0
wizard04
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.
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.
3
This VBScript provides the functionality for ping an ip address remotely by an IIS server. This file require IIS to access the ping.exe. see How can a ping an ip address remotely by ASP
2
Cloudgen
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
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
3
If you're using passwords of any type on your site, it is best to keep them random. That way they cannot be easily guessed at by intruders.
First, it's good to know a little about ASCII characters. Every character your keyboard can type is actually represented by a number. So the letter A is represented by 65. The letter Z is represented by 90. So all you need to do is generate a series of random numbers, each number between 65 and 90. That would give you a way to find the equivalent letters.
If you want to include numbers too, those are found between spots 48 and 57. I wouldn't use the spots between 57 and 65 - those are odd characters like colons.
So let's say you want to create a 7 character password that contains a random assortment of letters and numbers. You could do something like this:
5
This is a great little script that you can put on a friend's flash drive. It won't do any harm to their computer...it's just funny to watch. Put these 2 files in the "root" of the flash drive, cd, or any type of media/external drive. When they plug it in it will run the autorun script which then runs the shutdown script and restarts their computer! You will get a few laughs out of it...guaranteed!
3
To get the name of the computer/host
3
To create a shortcut to an url you can do as follows
3
If you want to create a shortcut programatically use the code below. Found somewhere on net
7
This small snippet will not allow _POST requests from a 'foreign' domain. It relies on the HTTP_REFERER variable.







