Skip to content

Planet-Source-Code/teco-stop-new-spam-with-asp__4-7677

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Stop New Spam with ASP

Description

This code takes a submitted email address/string and converts it to standardized ASCII Character codes, thus blocking bots/spiders from reading your email address, while yet allowing visitors to continue to read and use your proper address via mailto links, etc

More Info

Input a String

Returns an ASCII Encoded String

Submitted On
By Teco
Level Beginner
User Rating 5.0 (45 globes from 9 users)
Compatibility ASP (Active Server Pages), HTML
Category Strings
World ASP / VbScript
Archive File

API Declarations

EXAMPLE USE
------------------------
<A HREF="mailto:<%= ASCIICode("a@b.com") %>"><%= ASCIICode("a@b.com") %></A>

Source Code

Function ASCIICode(strInput)
  strOutput = ""
  For i = 1 To Len(strInput)
    strOutput = strOutput & "&#" & ASC(Mid(strInput, i, 1)) & ";"
  Next
  ASCIICode = strOutPut
End Function

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published