/    Sign up×
Community /Pin to ProfileBookmark

(email)spam blocker script

I have a website and I perused the free java script site and got this script that’s supposed to block spam bots.

I pasted into my index html but i couldn’t get it to work right. The problem i’m having is where does my name and email addy go? there are 2 or 3 places it looks you put your name and addy but I’m new to java script and would like some to show me where it goes.

I have a contact button on my website which is in a link table on the left side of the page. I want to keep that button in place and not have my contact at the top or the bottom of the page.

Here is the code
if my name and addy was for example: [email][email protected][/email] where are the places it needs to go?
TIA
James

<!– ONE STEP TO INSTALL EMAIL ADDRESS PROTECTOR:

  • 1. Copy the coding into the BODY of your HTML document –>
  • <!– STEP ONE: Paste this code into the BODY of your HTML document –>

    <BODY>

    <SCRIPT LANGUAGE=”JavaScript”>

    <!– Original: CDR Software –>
    <!– Web Site: [url]http://www.cdrsoft.com[/url] –>

    <!– This script and many more are available free online at –>
    <!– The JavaScript Source!! [url]http://javascript.internet.com[/url] –>

    <!– Begin
    user = “username”;
    site = “yoursite.com”;

    document.write(‘<a href=”mailto:’ + user + ‘@’ + site + ‘”>’);
    document.write(user + ‘@’ + site + ‘</a>’);
    // End –>
    </SCRIPT>

    <p><center>
    <font face=”arial, helvetica” size=”-2″>Free JavaScripts provided<br>
    by <a href=”http://javascriptsource.com”>The JavaScript Source</a></font>
    </center><p>

    <!– Script Size: 0.68 KB –> is the script:

    to post a comment
    JavaScript

    5 Comments(s)

    Copy linkTweet thisAlerts:
    @steelersfan88Mar 01.2004 — assume that email address is [email][email protected][/email]. Change these lines accordingly:

    user = "Email";

    site = "server.com";

    The script is not too difficult. It takes the username, Email, and the site, server.com, and places an @ symbol in between.

    NOTE: This will only block some spam --> when these scripts are introduced, the spams change their programs to include things like this!

    BUTTON CLICK SCRIPT: moved below by steelersfan88
    Copy linkTweet thisAlerts:
    @james49authorMar 01.2004 — Thanks for your reply, Sorry if I confused you. I have a button on the page that if you click it you can email me. I want to keep that button in place and use it as the

    link to email me. So i need to change the document write information like you suggested?

    Thanks Dr Script

    James

    [i]Originally posted by steelersfan88 [/i]

    [B]assume that email address is [email][email protected][/email]. Change these lines accordingly:



    user = "Email";

    site = "server.com";



    The script is not too difficult. It takes the username, Email, and the site, server.com, and places an @ symbol in between.



    NOTE: This will only block some spam --> when these scripts are introduced, the spams change their programs to include things like this!



    (If you want the link to be called on a button clic, can't quite tell what you want, just change following:



    document.write('<input type="button" onclick="window.location = mailto:' + user + '@' + site + '" value="');

    document.write(''+ user + '@' + site + '">');



    the things in the single wuotes on the second line, (' ... ') is the value of the button! [/B]
    [/QUOTE]
    Copy linkTweet thisAlerts:
    @steelersfan88Mar 01.2004 — not quite sure if that will work, theres a slight problem, if it doesn't, this will (again, the second line is the value of the button):[code=php]<script type="text/javascript" language="javascript">

    var user="a"
    var site="b.c"

    document.write('<input type="button" onclick="windo'+'w.loc'+'ation='mailto:' + user + '@' + site + ''" value="');
    document.write('Email!')
    document.write('">')

    </script>[/code]
    Copy linkTweet thisAlerts:
    @SamMar 01.2004 — this [URL=http://www.alistapart.com/articles/spam/]ala article[/URL] might be helpful to you
    Copy linkTweet thisAlerts:
    @james49authorMar 14.2004 — [i]Originally posted by samij586 [/i]

    [B]this [URL=http://www.alistapart.com/articles/spam/]ala article[/URL] might be helpful to you [/B][/QUOTE]


    Thanks samij586,

    I went and got the code and it works great. They spam has completely stopped. Thanks again.

    James49
    ×

    Success!

    Help @james49 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.14,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...