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

[ASK] anyway to hide the iframe url?

Discussion in 'Cloaking and Content Generators' started by amberlamps, Nov 11, 2010.

  1. amberlamps

    amberlamps BANNED BANNED

    Joined:
    Jun 24, 2010
    Messages:
    331
    Likes Received:
    142
    is their any way to hide the iframe url. like say im iframing email submits is their anyway to hide the iframe from anyone finding out what the affiliate?

    hope its clear what i mean
     
  2. pierz

    pierz Registered Member

    Joined:
    Nov 9, 2009
    Messages:
    58
    Likes Received:
    64
    Location:
    France
    Home Page:
    I don't really understand what you are trying to accomplish, can you put more information or the HTML code which is a problem ?
     
  3. amberlamps

    amberlamps BANNED BANNED

    Joined:
    Jun 24, 2010
    Messages:
    331
    Likes Received:
    142
    bascially im talking about iframe email submits and i dont want people to right click the iframe section and getting the url
     
  4. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    You could disable right click I guess.. but that's a stupid pointless thing to do really. No matter what you do, as long as a browser can read it so can any human being who posseses a little knowledge.
     
  5. amberlamps

    amberlamps BANNED BANNED

    Joined:
    Jun 24, 2010
    Messages:
    331
    Likes Received:
    142
    i have right click disabled but, if iframe site is not mines so it still able to right click it,
     
  6. pierz

    pierz Registered Member

    Joined:
    Nov 9, 2009
    Messages:
    58
    Likes Received:
    64
    Location:
    France
    Home Page:
    Well there is many way to hide your url, but it will be always possible to retrieve the originate url.

    Two idea come to my mind right now :
    1/ You can use 301 redirect services like bit.ly or ************ . You put your short link in the iframe source which will redirect to your affiliate URL.

    2/ You create a webpage wich contains only the iframe of your affiliate, you host this page on any web server you want. In your mail you put an iframe to this page new page (you will have an iframe in an iframe...)
     
  7. amberlamps

    amberlamps BANNED BANNED

    Joined:
    Jun 24, 2010
    Messages:
    331
    Likes Received:
    142
    yeah this how i have it set up iframe within a iframe, i guess it is what it is, cause they can always the right click the frame part and open this page in a new tab and will open the aff link in it own tab exposing the url im trying to hide.
     
  8. saxgod

    saxgod Regular Member

    Joined:
    Sep 19, 2010
    Messages:
    351
    Likes Received:
    337
    Maybe you could try to load the iframe page in a local php page with cURL. Then just echo the results back to the output. This way it will look if its a local page on your server inside the iframe. I don't know if the affil will have problems with this though as you are nuking your referrer this way.

    Let me know if you need any php code to try this.
     
  9. boreq

    boreq Newbie

    Joined:
    Oct 30, 2010
    Messages:
    3
    Likes Received:
    1
    Gender:
    Male
    Location:
    Internet :)
    Hi There, Can You post it or PM?

    Thanks in advance!
     
  10. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    You can set the referrer to whatever you want when requesting a page with cURL. But only do this if you are looking to give your network a good reason to ban you. PHP = serverside, and everytime cURL grabs the contents of the page your server IP would be used..
     
  11. tacopalypse

    tacopalypse Executive VIP Jr. VIP Premium Member

    Joined:
    Nov 30, 2009
    Messages:
    980
    Likes Received:
    2,485
    Home Page:
    i haven't actually tested this but here's the theory:

    have 2 iframes, 1 inside the other one.

    someone looking at the page source (on the outer iframe) will only see the url of the inner iframe.

    if they try to do a "view this frame", then you have a script on the inner iframe page which detects that it's been popped, and redirects them somewhere else so they can't see what your actual affiliate url is.

    requires a little bit of coding, but i think it'll effectively hide your affiliate url.
     
  12. saxgod

    saxgod Regular Member

    Joined:
    Sep 19, 2010
    Messages:
    351
    Likes Received:
    337
    Well what Grizzy says seems very valid. I hadn't thought about that but indeed it will always come from your server IP. Then when someone enters the information they are being sent to the affil and the affil suddenly sees a different IP.

    Anyhow, here is some code:

    <?php

    $url = "hxxp:// affil . link . c0m/";
    $ref = "hxxp:// my . website . c0m/";
    $useragent = $_SERVER['HTTP_USER_AGENT'];

    $s = curl_init();
    curl_setopt($s,CURLOPT_URL,$url);
    curl_setopt($s,CURLOPT_HTTPHEADER,array('Expect:'));
    curl_setopt($s,CURLOPT_USERAGENT,$useragent);
    if (!empty($ref)) curl_setopt($s,CURLOPT_REFERER, $ref);
    curl_setopt($s,CURLOPT_AUTOREFERER, true);
    curl_setopt($s,CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($s,CURLOPT_MAXREDIRS, 5);
    curl_setopt($s,CURLOPT_RETURNTRANSFER, true);
    $content = curl_exec($s);
    curl_close($s);
    echo $content;

    ?>


    Please note that it might be needed to do some strreplace to modify the target of the form in the html.

    (replace the hxxp urls by valid urls, seems i am not allowed to post URLs yet)
     
    • Thanks Thanks x 1
  13. Croth

    Croth Newbie

    Joined:
    Jul 11, 2014
    Messages:
    14
    Likes Received:
    1
    Gender:
    Female
    saxgod
    perfectly if also can change IP :D
    thanks for share mate