Jul 25, 2008

Secure The Email Addresses On Your Website! - Wonderful script and useful! And working

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials
Pages: 1, 2

free web hosting

Secure The Email Addresses On Your Website! - Wonderful script and useful! And working

karlo
Just follow the instructions below:


<span style='font-size:8pt;line-height:100%'><span style='color:green'>
/*
Secure Email Function by Juan Karlo Aquino de Guzman
Website: http://www.karlo.ph.tc and http://www.abs-cbn.ph.tc
E-mail: http://www.karlo.ph.tc/send.php

Usage: showEmail("support@microsoft.com",0); OR showEmail("support@microsoft.com",1); <-- example
Types:
0 = ordinary random
1 = more secure random

To include to a script:

include_once("email_secure.php");
*/
</span></span>


And here is the code:

CODE
<?php

/*
    Secure Email Function by Juan Karlo Aquino de Guzman
    Website: http://www.karlo.ph.tc and http://www.abs-cbn.ph.tc
    E-mail: http://www.karlo.ph.tc/send.php

    Usage: showEmail("support@microsoft.com",0); OR showEmail("support@microsoft.com",1); <-- example
    Types:
    0 = ordinary random
    1 = more secure random

    To include to a script:

    include_once("email_secure.php");
*/

function showEmail($email,$type) {
    if(!strstr($email,"@") || !strstr($email,".")) {
  echo("<div align=\"center\" style=\"font-family: Verdana; font-size: 12px; font-weight: bold; color: white; background-color: black; padding: 4px;\">Your e-mail is invalid!</div>");
    }else {
  $email_split=split("@",$email);
  if($type===0) {
      $random1=str_shuffle(strtolower(metaphone(sha1(mt_rand(11111,99999)))));
      $random2=str_shuffle(strtolower(metaphone(sha1(mt_rand(11111,99999)))));
      $randomAT=str_shuffle(str_shuffle($random1).str_shuffle($random2));      
  }else {
      $random1=str_shuffle(strtolower(metaphone(uniqid(md5(mt_rand(11111,99999))))));
      $random2=str_shuffle(strtolower(metaphone(uniqid(md5(mt_rand(11111,99999))))));
      $randomAT=str_shuffle(str_shuffle($random1).str_shuffle($random2));
  }

  $atSign=rawurlencode("@");
  $first=rawurlencode($email_split[0]);
  $second=rawurlencode($email_split[1]);
  echo "&lt;script language=\"javascript\" type=\"text/javascript\"><!--\nvar $random1=unescape('$first');var $random2=unescape('$second');var $randomAT=unescape('$atSign');document.write($random1+$randomAT+$random2);\n//--></script>";
    }
}

?>


Explaination of the code:

<span style='color:blue'>Basically, what it does is it encrypts the e-mail address and uses JavaScript to show the e-mail address to the visitor of your website. Spambots won't be able to decrypt it.. because it's really secure... you don't have to use ProjectHoneyPot which is a waste of time in my opinion.</span> biggrin.gif

 

 

 


Reply

Adamrosso
Great tutorial. I will use this in the future probaly. anywho, 10/10 =D

Reply

crimsoncross
nice tut
i will use it in future to stop the spam

Reply

dLz
Yeah, very nice!
I will use it! smile.gif

Reply

lokesh
Thats cool script. I'll surely include this script in my upcoming script. Great work there, keep it up smile.gif

BTW, I'm not able to access your sites.

Reply

apurva
Even i'm not able to access his site..
May be server downtime.
I hate it when its like this..

Reply

Florisjuh
Nice tutorial, but I don't think I am gonna need it because I use CMS's which already have email adresses secured smile.gif

Reply

Cena_54
Wow thanks a lot for this one man, ive been looking for some code as easy as this to put onto my website so those spambots can't get me, I will try and use this code on my website. Thanks a lot.

Reply

sportytalk
A very nice code and I may even use it myself in future codes if I ever need to display email addresses, although I prefer not to display email addresses (some of the intelligent bots are being coded to read the webpages the exact way that humans do) and I certainly try to avoid using javascript.
The simple reason for avoiding javascript is that not all users have javascript enabled browsers (WebTV doesn't support javascript in the first place, and the modern internet browsers such as Mozilla Firefox or Internet Explorer have the option for users to turn it off). A lot of people do have javascript turned off, so basically, I advise staying clear of javascript when at all possible.

Nice script nevertheless biggrin.gif

Reply

Dawiss
Nice code wink.gif.. but don't think about using this code on my website.. sorry just don't have any ideas for it usage on website.. but great code and there sure are people that see usage of it on theyr websites// but Im not wink.gif.. great job keep it up wink.gif..

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2
Recent Queries:-
  1. php secure email - 155.17 hr back. (1)
Similar Topics

Keywords : secure, email, addresses, website, wonderful, script, working

  1. Make A Moderately-secure Password System Using Javascript
    using file redirection to hide the password. (4)
  2. Verifying Your Email Address
    A Simple PHP Tutorial. (0)
    Hi, everyone. I'm offering the next PHP tutorial that verifies an email address of an user who
    wants to register on your site. This is how it works. When someone, went to registration page and
    filled out all of the details such as Name, Password, email and so on and submit those details to a
    server. The user is getting unique registration code to his or her email account, the one has to be
    clicked to activate the account. 1. Outline: a) You need to create or build the following files:
    -config.php (The configuration file) -signup.php (Initial Registration) ....
  3. Php - Forms, Date And Include
    Working with POST and GET and also the Date() function (0)
    /--------PHP FORMS, DATE AND INCLUDE TUTORIAL BY FLASHY--------\ Hi and welcome to my
    tutorial. I will show you how to make simple PHP forms with the POST and GET statements. I will
    also show show you the Date() function too, aswell as the include() function. OK, so first you need
    a good understanding of HTML, and you need to create your form using that. So lets start off with
    the HTML form. 1. Create a page called form.html. 2. Insert your standard tags like: CODE
    <html> <head> <title>Working with php forms.</title> </he....
  4. How To Setup A Website After Your Forum
    (3)
    This tutorial is about how to setup a website after you have setup a forum. That means, you have a
    forum, and are wanting to add a website. This tutorial will show you how to create the website in
    your root directory(Example: http://domainname.com) , while your traffic gets redirected to your
    forum while you are creating it, until you're ready for guests to see it. This method is
    opposed to setting it up in another directory, then moving it(particularly more time consuming if
    you're site is PHP based). First of all, you are going to want to setup a redirect ....
  5. [phpbb] Member Last-visit Report Script
    for phpbb2 databases (0)
    One flaw in the phpbb2 administration section is a report to list out the 'last-visit'
    time/date of the membership. I wrote a script to do exactly that and will be sharing the script with
    you here. the first section defines the variables required for the Database connection, finding the
    right database, supplying passwords, etc. HTML DEFINE ('DB_USER', 'YOUR DB
    USER NAME'); // change these defined values to suit your own situation DEFINE
    ('DB_PASSWORD', 'YOUR DB PASSWORD'); DEFINE ('DB_HOST', '....
  6. Creating Navigation For Html Websites
    Have a common navigation menu for the whole website! (12)
    Pre-requisite: HTML, inline frame tags 1 Attachment(.zip) included. Updates : 29-12-07: Doctype
    added in example files (Advised by jlhaslip) Designing a whole website takes a lot of planning
    and organization. Designing a proper navigation system is a basic step in building your website. If
    you are developing webpages in html you would have observed that as you go on creating pages it
    becomes difficult to maintain the links to the pages. This article will guide you in developing a
    common navigation menu for your website. It describes three ways, so if you don'....
  7. Background Image Swap Script
    Change a Background Image based on clock time (15)
    Background Image Changer Script To swap the background image from your CSS file according to the
    Server Clock Time. 1.) In your CSS file, add the following rule: CODE body {
        background: url(time.png); } 2.) Create a "folder" named time.png. 3.) Into the
    folder, place three images named morning.png, day.png, night.png. 4.) Also, in the same folder,
    create an index.php file and copy/paste the following script. CODE <?php $hour =
    date('H'); if ($hour < 12 ) {     $image =
    "morning.png"; } ....
  8. Css Scroll Bar Styles
    Change the color of your website scrollbar! (1)
    REQUIREMENTS 1. Must have limited to good knowledge of CSS. 2. Must have limited to good knowlege
    of HTML. THE ELEMENTS First of all, there are 7 different elements of a scrollbar. a) Scrollbar
    Arrow Color /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" />
    Scrollbar Darkshadow Color c) Scrollbar Track Color d) Scrollbar Face Color e) Scrollbar Shadow
    Color f) Scrollbar Highlight Color g) Scrollbar 3dlight Color Bassically all that you need to do is
    change the colors like you normally do with any sort of CSS. Therefore, if you want the....
  9. Image Rotator Script (another One)
    easy to implement (0)
    In case you haven't noticed, I have a different Avatar display on the Forum each time the page
    is refreshed. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
    /> For those of you who might want the script to do that, here is the one I am using: HTML
    $filesp = glob('*.png'); if(empty($filesp)){ echo
    'no images found...die br >'; die(); } else{ foreach ($filesp as
    $file) { $img_array[] = trim($file); }....
  10. Making A One Page Does All Website In Phph
    (2)
    Hello and Great Day or Night either one. Have you ever been to a site and seen a index page or any
    page at all control everything such as index.php?do=home&action=logout something similar to the
    above? Well I am going to show you how easy it is to make this all own your own, and only have to
    use one web template or design to make it work. Before we get started you need to go ahead and find
    the web design that you want to use. After you find the site you want to use go ahead and save
    it... and save it like this so we can work together, ok! Note* We are going to ....
  11. Adding Your Website To Google
    How to register with google (20)
    Hi everyone. Hopefully here im going to tell you how to register yourself with the Google search
    engine and get yourself in their results. Ill start the tutorial assuming you already have Meta
    tags or other search engine optimisation techniques in place. This tutorial is solely about
    registering with google. At one time i thought simply using meta tags etcetera would get you listed
    in Google, i then found out that didnt work, so i wondered why, and the fruits of my labour are what
    will go into this tutorial. the first step is to get a google account, this will get y....
  12. For ... Next Loops And Script Planning
    My Fifth PHP Tutorial (2)
    Be sure to read the other ones. They are located in the TUTORIALS section, and at the time of this
    writing all on the first page. Intro To PHP Tutorial 5 - For ... Next Loops and Planning Scripts
    Released 4/15/07 By Chris Feilbach aka GhostRider Contact Info: E-mail: assembler7@gmail.com AIM:
    emptybinder78 Yahoo: drunkonmarshmellows Website: http://www.ghostrider.trap17.com Before I start
    talking about what wonderful things loops are and all the cool stuff they can do, I want to address
    something first. I was asked about something to write in PHP. There isn't....
  13. How To: Ip Configuration Script (win Xp)
    If you travel a lot with your laptop, and need to switch between diff (0)
    How To: IP Configuration Script (win XP) If you travel a lot with your laptop, and need to switch
    between different IP's in different locations, this script is for you. There are many programs
    that handle this task very well, but they cost sometimes pretty big money. This tutorial will show
    you how to make your own IP Configuration Script for free. This script is for a static ip address
    configuration and is based on a little program called "NETSH.EXE" which is supplied with Windows.
    How it works. QUOTE Microsoft Windows XP - Using Netsh Netsh.exe is a....
  14. Php Script To Make A Link List
    From the list of the Directory Files (6)
    Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another
    script for the members to enjoy. This one creates a list of links from the contents of the directory
    which it is run from. For instance, if you run it from the public_html folder, then all the files
    (not the Directores) are listed and linked so when you click on the link, that file is parsed and
    output to the browser. Here is the code: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    An XHTML 1.0 Strict Page to List the files in this directory ....
  15. Using A Secure File Transfer Client
    A discussion of FTP, FTPS, SCP, and SFTP (0)
    Using a Secure File Transfer Client Almost everyone who creates a web site is faced with
    the problem of getting their files from their local computer to their web server. There are a few
    different protocols (methods) through which to accomplish this, and some have definite advantages
    over others. Here are the major ones, listed loosely in order of increasing security. Note: All
    of the programs recommended in this tutorial are for Windows only. Command line alternatives are
    accessible via the terminal for both Linux and OS X. FTP First a note on using ....
  16. Sending + Receiving Email Via Telnet
    using email via the command line. (8)
    ok first off im no good at writing tutorials so feel free to flame me (hey that rymes). Anyway in
    this tutorial i will basically show you how to send and receive email via the command-line terminal
    emulation program called Telnet. Now where shall i start, hmm.. Sending Email!! Sending
    Email Sending email requires a special type of server called an SMTP server (SMTP -> Simple Mail
    Transfer Protocol). SMTP is the protocol used to send email just like POP is the protocol used to
    receive. Now by default and most commonly SMTP servers run on port 25. To describe ....
  17. Php Menu Bulding Script And Site Template
    available for download (0)
    A Php Menu-builder Tutorial This Sidebar Menu-builder code and the php scripts are adapted from
    a Tutorial on the Astahost.com Forum titled : CMS101 - Content Management System Design .
    Since the original tutorial's author (vujsa) did such a marvellous job of describing the system
    in the original Topic posting, I will not attempt to explain it here, rather, I invite you to have a
    look at his Topic and learn from it. The Basic tutorial provided coding for developing a table-based
    web-site template which used php includes and embedded data to create a &....
  18. Script To Build A List Of Links
    from filenames and h3 tags (2)
    Another Unordered List Script If you remember this Script , that tutorial was about creating
    an un-ordered list of links from a list of files contained in a Folder which was specifically named
    in the script. This current Tutorial goes several steps beyond that first Tutorial by being able to
    create a list from several folder names and, more importantly, the script reads the list of links
    from a 'flat file' rather than depending on the name of the folder to be hard coded in the
    script. It is only one small step to have the folder names found in a mysql ....
  19. Linux Info/howto
    Info about working with linux part1 (6)
    Linux on your desktop?! What kind of hardware do i need to run Linux? Linux will
    basically run on almost all hardware you can think of. from a usb-memorystick up to a big mainframe.
    For modern distro's a PentiumIII/Celeron or Athlon computer with 128mb ram (256mb recommended)
    are good enough to use. I thought Linux was free but there also packages for sale? Thats correct
    you can get Linux for free from the internet but there is also a option to buy it at a store. When
    you buy (for instance) suse linux at a store you will be provided with a handbook an....
  20. Page Generation Time Script
    A script to tell how long it took to generate (17)
    this is a script used to tell you or visitors how fast your page was generated for the person who is
    viewing it... Ok it is verry simple!! all you have to do is put this script on every
    page... that you want it to be on CODE <?php $starttime = explode(' ',
    microtime()); $starttime = $starttime[1] + $starttime[0];
    ?> and put it before everything on the page, for me i put it right underneith the DOCTYPE
    script which i think is a bloody waste of space to have it on there, but anyways.. ....
  21. Checking Dns Settings For Website
    DNS Setting, Ping, Whois, Dnsreport etc (2)
    If you have recently purchased a domain and facing problems with the workings, the first thing which
    you should check is the DNS setting. Dns settings determine, how to domain is pointed to the Server
    and How the server is connected to the world (internet). Ensure, the DNS settings are perfect to
    make sure, things work smoothly and people across the globe don't have problems accessing your
    site. The basic check would be : PING Suppose you register your domain (example.com) at
    ComputingHost. You get an IP for your website. In this case, suppose its 64.69.35.170. Yo....
  22. Configuring Dns Settings For Website
    Nameserver, A-Address, DNS configuration (1)
    Most of the people have problems configuring their website. After registering their domain, many get
    confused in configuring their domain (basically the DNS settings). This small tutorial will help you
    get started with DNS settings configuration. A domain can be basically pointed to a server using 2
    main techniques. 1. Nameserver (the most recommended way) 2. A Address (Not recommended)
    Configuring using Nameservers ==================== Login to your domain Control panel provided by
    your DOMAIN NAME PROVIDER / REGISTRAR. Not your webhost. Search for settings like DN....
  23. Introduction To Templating
    Templating your website with PHP (1)
    Pre-note Hello and welcome. if your website doesn't use a templating function, you may have
    noticed it's pretty hard to update your website (layout) unless you dig through many files to
    update the images and such. The solution is templates. If you ever got curious and looked into
    phpBB codes or any other template based forum/CMS, you saw the .tpl files they use. I am not at a
    point where i base everything on .tpl (simply because i havent taken the time to see how it all
    works). But i do can tell you that it's the same principle, template your site using an....
  24. Verifying Email Addresses
    Using a simple PHP script (8)
    This simple script will allow you to run some basic checks to make sure that any email address
    entered is actually an email address. There is no guarantee offered that this will stop every single
    fake email address, but it'll provide some protection. Now, the code! First we need to get
    the email address to verify. Here, I get it using POST from an HTML form. CODE <?php //Load
    email address from web form $email = $_POST['email']; Now, we move on
    to our first check. Does the text that has been entered look like it could b....
  25. Installing Ndstats!
    The greatest Stats script of all time. (4)
    An example of this script cna be found at http://www.own.tc/ (click enter) This is by far the
    BEST stats script and most sites use it! This is a PHP script and requires you to include files
    (Please... don't do iframes!) DOWNLOAD LINK: GO TO www.ZYMIC.com and go to Php scripts>stats
    scripts> and the current version of NDSTATS. Downlaod it and unzip it! Go to your WWW directory
    and create a folder called "ndstats". Then what you need to do is upload all of your files into
    that folder. You all should know how to do that. Then go to the top of the pag....
  26. How To Use Trap17 Cgi Formmail
    a built-in script in every hosting (15)
    This tutorial is using TRAP17 hosting's built-in script called cgiemail. There are several
    hundreds of free scripts you can download and install it yourself but why not use what is already
    provided for you, if all you need is a simple submit and data collection? Let's begin. There
    are three things you need to remember: 1) you can rename the file however you'd like 2) two
    files (which I'll name them submitForm.html and template.txt ) must be in the same directory
    3) first two lines in template.txt must EXIST. Write your submitForm.html (where you ....
  27. Email Script/form With Php
    how to make a simple email script using php (35)
    Today, I'm going to show you how to make an email script using PHP and HTML. Most people usually
    put Email me if they want an email link on their site, but there are several cons to this.
    First, it's very inconvenient for those people who use web-based mail such as Yahoo!,
    Hotmail, or Gmail because that darn Micro$oft Outlook program comes up if one accidently click
    the link. Second, you are very suseptible to spam bots because they scan your HTML source code for
    anything with the same pattern as an email address and add it to their database. If yo....
  28. Test Your Php Pages W/o Upload/internet
    complete *working* guide on how to test your php pages (57)
    In this tutorial, I'm going to show you how to test your PHP pages without the Internet or
    uploading the files to your trap17 server. This tutorial is similar to doom's, but the links he
    provided does not work, so I decided to make my own tutorial with working links. The program that I
    will be using for this tutorial is called XAMPP . XAMPP is a modification of the popular Apache
    server, and I'm using XAMPP because of its simplicity to install as well as maintain. The
    current version of XAMPP is 1.4.13 and it has the following bundled in the download: QUOT....
  29. Php Quiz Script
    Make quizzes for your site. (20)
    Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
    doesnt do anything special but I am going to make an email mod for it so that it will email results
    to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
    editor and paste in the following code. CODE <?php $qid = "Quiz ID-00"; ?>
    <html> <head> <title><? echo "Gamers Pub $qid";
    ?></title> </head> <body> <p><h3><? echo "....
  30. Php Emailer/contact System
    An email or contact system for your site (20)
    Hello all, Here is an easy Emailer or Contact system that allows visitors or members of your site
    to email you just by filling out a form. So here is what you need to do to set it up. First open up
    a new page in your text editor and paste in the following code. CODE <?php $Name =
    $_POST['Name']; $Subject = $_POST['Subject'];
    $Email = $_POST['Email']; $Site =
    $_POST['Site']; $Message=$_POST['Message'];
    $align = $_POST[&#....

    1. Looking for secure, email, addresses, website, wonderful, script, working

Searching Video's for secure, email, addresses, website, wonderful, script, working
Similar
Make A
Moderately-s
ecure
Password
System Using
Javascript -
using file
redirection
to hide the
password.
Verifying
Your Email
Address - A
Simple PHP
Tutorial.
Php - Forms,
Date And
Include -
Working with
POST and GET
and also the
Date()
function
How To Setup
A Website
After Your
Forum
[phpbb]
Member
Last-visit
Report
Script - for
phpbb2
databases
Creating
Navigation
For Html
Websites -
Have a
common
navigation
menu for the
whole
website!
Background
Image Swap
Script -
Change a
Background
Image based
on clock
time
Css Scroll
Bar Styles -
Change the
color of
your website
scrollbar
3;
Image
Rotator
Script
(another
One) - easy
to implement
Making A One
Page Does
All Website
In Phph
Adding Your
Website To
Google - How
to register
with google
For ... Next
Loops And
Script
Planning -
My Fifth PHP
Tutorial
How To: Ip
Configuratio
n Script
(win Xp) -
If you
travel a lot
with your
laptop, and
need to
switch
between
diff
Php Script
To Make A
Link List -
From the
list of the
Directory
Files
Using A
Secure File
Transfer
Client - A
discussion
of FTP,
FTPS, SCP,
and SFTP
Sending +
Receiving
Email Via
Telnet -
using email
via the
command
line.
Php Menu
Bulding
Script And
Site
Template -
available
for download
Script To
Build A List
Of Links -
from
filenames
and h3 tags
Linux
Info/howto -
Info about
working with
linux part1
Page
Generation
Time Script
- A script
to tell how
long it took
to generate
Checking Dns
Settings For
Website -
DNS Setting,
Ping, Whois,
Dnsreport
etc
Configuring
Dns Settings
For Website
-
Nameserver,
A-Address,
DNS
configuratio
n
Introduction
To
Templating -
Templating
your website
with PHP
Verifying
Email
Addresses -
Using a
simple PHP
script
Installing
Ndstats!
- The
greatest
Stats script
of all time.
How To Use
Trap17 Cgi
Formmail - a
built-in
script in
every
hosting
Email
Script/form
With Php -
how to make
a simple
email script
using php
Test Your
Php Pages
W/o
Upload/inter
net -
complete
*working*
guide on how
to test your
php pages
Php Quiz
Script -
Make quizzes
for your
site.
Php
Emailer/cont
act System -
An email or
contact
system for
your site
advertisement



Secure The Email Addresses On Your Website! - Wonderful script and useful! And working



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE