Results 1 to 9 of 9

Thread: Email riddler - something similar for urls?

  1. #1
    Join Date
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Email riddler - something similar for urls?

    I removed access to my site's guestbook for a while because it attracted unwanted attention.
    Within days of me reinstating it the scum of the internet were at it again.

    Can anyone suggest something similar to Email Riddler for urls?

    If not I shall just use a gif image of the book's address and add an explanation.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The Email Riddler just uses an array of decimal ASCII values. You can make these into whatever you want; they needn't be an email address. For example, you@yourdomain.com would be:
    121 (y), 111 (o), 117 (u), 64 (@), 121 (y), 111 (o), 117 (u), 114 (r), 100 (d), 111 (o), 109 (m), 97 (a), 105 (i), 110 (n), 46 (.), 99 (c), 111 (o), 109 (m).
    Ergo, the array would be:
    Code:
    new Array(121,111,117,64,121,111,117,114,100,111,109,97,105,110,46,99,111,109)
    You can use the following bookmarklet to translate a string to this array. Simply copy and paste the below code into your address bar and hit enter.
    Code:
    javascript:(function(){var s=window.prompt("Enter text:"),p="new Array(";if(s){for(i=0;i<s.length;i++)p+=s.charCodeAt(i)+(i+1 < s.length?",":"");p+=")";v=window.open();v.document.open();v.document.write(p);v.document.close();}})();
    Replace the new Array(blah,blah,blah) in your Email Riddler code with the result, and obviously remove the mailto: from the link.
    Last edited by Twey; 12-09-2005 at 02:21 PM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you Twey, that's great.

    I saw that the numerical values were a simple substitution but didn't know they were the ASCII numbers.

  4. #4
    Join Date
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm having dificulty with document.write

    On one line I want to put a mixture of plain text, then a single word which is the encoded url, more plain text, another url and then further text. I can't get the syntax right.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    document.write(" text goes here " + name_of_variable + " more text " + name_of_other_variable + " further text ");
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry, I explained my requirement poorly.

    When I said "encoded url" I meant the on-screen text which links to the url. (There must be recognised way of referring to it but I don't know what it is.)

    This is what I have so far:

    document.write('<a href="'+postsig+'"><p align="center"><font size="4" face="Arial"><strong>sign</strong></a>' + " my guestbook");

    The word "sign" is what I just called "the on-screen text which links to the url."

    That appears okay, followed by "my guestbook."

    What I can't get to work is adding more text before the "on-screen text ..."
    and another bit of "on-screen text ...."

    The complete on-screen line would read something like "You can sign my guestbook, or read it."

    The underlined words being links to the appropriate (encoded) urls.

    I hope this makes sense.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Well, you can't nest a <p> inside an <a> for a start. I think the correct term you're looking for, by the way, is "anchor text," or simply "link text."
    Code:
    document.write('<p style="text-align:center;font-size:4pt;font-weight:bolder;">You can <a href="' + postsig + '">sign</a> my guestbook, or <a href="' + readsigs + '">read</a> it.</p>');
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you again. It's up and running now.

  9. #9
    Join Date
    Nov 2004
    Location
    UK
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ..... and they're still at it.

    It seems that some of the robots, or whatever they are called, read addresses disguised as ASCII numbers.

    Or do they? Are they doing that or are they associating a URL with the word "guestbook" in the adjacent text?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •