|
Equivalents >>>
Spammers now frequently send their website addresses in an encoded form, hoping to hide its true origin and prevent being reported to their web host. This script allows you to convert these URLs into human-readable form so that you may complain to the spammer's web host and get their account shut down.
Add the below code to the <body> section of your page:
<script
language="javascript"
type="text/javascript">
function
unObfuscateURL(frm)
{
strURL
=
unescape(frm.txtURL.value.replace(/\s/g,""));
strURLInitial
=
strURL;
numHTTP
=
strURL.toLowerCase().indexOf("http://");
numHTTPS
=
strURL.toLowerCase().indexOf("https://");
numFTP
=
strURL.toLowerCase().indexOf("ftp://");
if
(numHTTP
>=
0)
numStart =
numHTTP +
7;
else
if
(numHTTPS
>=
0)
numStart =
numHTTPS +
8;
else
if
(numFTP
>=
0)
numStart =
numFTP +
6;
else
numStart =
0;
numPound
=
strURL.indexOf("#",
numStart);
if
(numPound
>=
0)
strURL =
strURL.substring(0,
numPound);
numAt
=
strURL.indexOf("@",
numStart);
numSlash
=
strURL.indexOf("/",
numStart);
if
(numAt
>=
0)
{
if
(
(numSlash
>=0
&&
numAt <
numSlash)
||
numSlash <
0
)
{
strURL
=
strURL.substring(0,
numStart)
+ strURL.substring(numAt+1,
strURL.length);
}
}
frm.txtURLInitial.value
=
strURLInitial;
frm.txtURLFinal.value
=
strURL;
}
function
clearURL(frm)
{
frm.txtURL.value
=
"";
frm.txtURLInitial.value
=
"";
frm.txtURLFinal.value
=
"";
frm.txtURL.focus();
}
</script>
<form
name=frmURL>
<table
border=0
cellpadding=0
cellspacing=3>
<tr>
<td
valign=top
rowspan=2
bgcolor="#e0e0e0">Obfuscated
URL</td>
<td><textarea
name=txtURL
cols=50
rows=5>http://www.angelfire.com%40%77w%77%2e%63yb%65%72%67atew%61%79%2e%6e%65%74/s%70%61%6d%6d%65r/%69%6Ed%65%78.%68%74m%6C#3491382728/%32c%72%65%64%69%74c/%69%6Ed%65%78.%68%74m%6C</textarea></td>
</tr>
<tr>
<td>
<input
type=button
value="Reveal
URL"
onClick="unObfuscateURL(this.form)">
<input
type=button
value="Clear"
onClick="clearURL(this.form)"><br>
</td>
</tr>
<tr>
<td
valign=top
bgcolor="#e0e0e0">Initial
unobfuscation</td>
<td><input
type=text
size=65
name=txtURLInitial></td>
</tr>
<tr>
<td
valign=top
bgcolor="#e0e0e0">Final
unobfuscation</td>
<td><input
type=text
size=65
name=txtURLFinal></td>
</tr>
</table>
</form>
|
|