1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using data:text/html to do redirects or clickthroughs?

Discussion in 'Black Hat SEO' started by capsizedMo, Mar 25, 2016.

  1. capsizedMo

    capsizedMo Newbie

    Joined:
    Feb 8, 2016
    Messages:
    23
    Likes Received:
    8
    Occupation:
    IM
    Location:
    USAtx
    Ok, so I was playing around with base64 the other day and thought about something... You can copy the data set, and paste it in your url, and it will send you directly to ... well, wherever you have the link set to. I'll give you an example, but I'm really just curious how I could use this type of function.

    So I was using base64 encoding and decoding. and had written this: Using BHW as an example click through.
    Code:
    <html><body><script>window.location='bhw url';</script></body></html>
    So, I encoded this, and this is what came out:
    Code:
    PGh0bWw+PGJvZHk+PHNjcmlwdD53aW5kb3cubG9jYXRpb249J2h0dHA6Ly9ibGFja2hhdHdvcmxkLmNvbSc7PC9zY3JpcHQ+PC9ib2R5PjwvaHRtbD4=
    Going back to base64 html here. We add something to the beginning of the string.
    Code:
    data:text/html;base64,

    Now it should look like this:
    data:text/html;base64,PGh0bWw+PGJvZHk+PHNjcmlwdD53aW5kb3cubG9jYXRpb249J2h0dHA6Ly9ibGFja2hhdHdvcmxkLmNvbSc7PC9zY3JpcHQ+PC9ib2R5PjwvaHRtbD4=


    You can copy that last string, paste it in your browser, and it takes you back to bhw of course. So you see... there is actually no link there.

    2 things I learned from this.

    You can code an entire html/css/javascript page, as long as its completely inline. And have it technically hosted... no where.
    You can use this as a a href="" link in your html.

    I also found out that G, doesn't frown upon these types of... links.Which i thought to be strange, but he reality is that code like this helps with performance of sites as well.