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

Cloaking facebook url

Discussion in 'FaceBook' started by baxxx, May 22, 2016.

  1. baxxx

    baxxx Junior Member

    Joined:
    Mar 25, 2012
    Messages:
    185
    Likes Received:
    44
    Occupation:
    hustler
    Location:
    EU
    Home Page:
    Hi, i have been searching the internet but nothing seems to work to solve my problem.
    Basically I want to cloak my blackhaturl.com with legit looking url for example 9gag.com.
    This can be done with og: url meta tags.
    But when I do that the facebook scrapes og: image and og:description from website described in og:url meta property.

    [​IMG]

    Code:
    Code:
    <html>
    <head>
       <meta content='https://i.imgur.com/gsEFjEi.jpg' property='og:image'/>
      <meta content='http://9gag.com' property='og:url'/>
       <meta content='This is the description part' property='og:description'/>
    <script type='text/javascript'>window.location = "blackhaturl.com"</script>
    
    
    </body>
    </html>
    So what I can do is either: make custom description and image but user is seeing my blackhaturl.com or let user see 9gag.com with its image and description.
    Anybody got a solution so i can put og: url of 9gag.com and be able to use my own description, title, and image meta tags ?
     
  2. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    725
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    I second this. Need to figure out how to spoof og:url while controlling og:image, og:title, and og:description.

    Anybody know?
     
  3. Ritalean

    Ritalean BANNED BANNED

    Joined:
    Aug 6, 2012
    Messages:
    40
    Likes Received:
    9
    Gender:
    Male
    i think you need the canonical tag
    <link rel="canonical" href="http://www.example.com" />
     
  4. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    725
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    Can you provide an example of how this would be used in OG to spoof links?
     
  5. baxxx

    baxxx Junior Member

    Joined:
    Mar 25, 2012
    Messages:
    185
    Likes Received:
    44
    Occupation:
    hustler
    Location:
    EU
    Home Page:
    Just to be clear spoofing og:url is easy. Problem is that i cant use my own og:img and og description after that because Facebook pulls those 2 meta tags from og: url tag.
     
  6. xbryan

    xbryan Senior Member

    Joined:
    Jul 12, 2015
    Messages:
    883
    Likes Received:
    211
    it doesnt work on ALREADY blocked links + this doesnt work.
     
  7. Ritalean

    Ritalean BANNED BANNED

    Joined:
    Aug 6, 2012
    Messages:
    40
    Likes Received:
    9
    Gender:
    Male
    <meta http-equiv="refresh" content="0; URL='URL_YOU_WANT_TO_REDIRECT" />
    <link rel="canonical" href="URL_YOU_WANT_TO_SPOOF" />

    working version:

    <html>
    <head>
    <meta http-equiv="refresh" content="0; URL='http://google.com" />
    <link rel="canonical" href="http://9gag.com/gag/apv7mO9?ref=fsidebar" />
    </head>
    <body>
    </body>
    </html>


    is that what you wanted?
     
  8. baxxx

    baxxx Junior Member

    Joined:
    Mar 25, 2012
    Messages:
    185
    Likes Received:
    44
    Occupation:
    hustler
    Location:
    EU
    Home Page:
    That is not wokring, its still displays my url instead of canonical one.
     
  9. Ritalean

    Ritalean BANNED BANNED

    Joined:
    Aug 6, 2012
    Messages:
    40
    Likes Received:
    9
    Gender:
    Male
    of course its working, you first need to clear the facebook cache https://developers.facebook.com/tools/debug/ here.. just insert the link you use to share .. first you will se the old version then click "scrape again" and FB will clear the cache
     
  10. baxxx

    baxxx Junior Member

    Joined:
    Mar 25, 2012
    Messages:
    185
    Likes Received:
    44
    Occupation:
    hustler
    Location:
    EU
    Home Page:
    Well if you can have google.com as your og:url and have your custom og:image and og:description i will give you 10$.
    Post screenshot here.
     
  11. CaptKe3n

    CaptKe3n Registered Member

    Joined:
    Jan 28, 2014
    Messages:
    70
    Likes Received:
    11
    Gender:
    Male
    why to bother making your own, try to publish your post from power editor . you can write your own link display and descriptions, while your main url is to your domain/site
    Gimme ur 10$ will ya? :p
    Here the screenshot [​IMG] [​IMG] [​IMG]
     
    • Thanks Thanks x 1
  12. baxxx

    baxxx Junior Member

    Joined:
    Mar 25, 2012
    Messages:
    185
    Likes Received:
    44
    Occupation:
    hustler
    Location:
    EU
    Home Page:
    Wow thanks, send pp to PM :D
     
  13. CaptKe3n

    CaptKe3n Registered Member

    Joined:
    Jan 28, 2014
    Messages:
    70
    Likes Received:
    11
    Gender:
    Male
    :D haha, na im just jokes about 10$ .. I'm glad to help anyway
     
    • Thanks Thanks x 1
  14. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    725
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    Images were deleted. Can you PM me the underlying code that allows you to spoof og:url? I'd be super greatful :)
     
  15. CaptKe3n

    CaptKe3n Registered Member

    Joined:
    Jan 28, 2014
    Messages:
    70
    Likes Received:
    11
    Gender:
    Male
    images still there.. try right click then view image.
     
  16. Anakyl

    Anakyl Regular Member

    Joined:
    Mar 29, 2016
    Messages:
    211
    Likes Received:
    41
    Gender:
    Male
    Home Page:
  17. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    725
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
  18. EAmiraghyan

    EAmiraghyan Newbie

    Joined:
    Feb 28, 2016
    Messages:
    38
    Likes Received:
    6
    <!Doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>These 10 Celebrities Reveal That They Sleep N*ked!</title>
    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width; height=device-height; initial-scale=1.0; maximum-scale=10.0; user-scalable=1;"/>
    <meta property="og:site_name" content="YOUR_WEBSITE_NAME"/>
    <meta property="og:title" content="These 10 Celebrities Reveal That They Sleep N*ked!"/>
    <meta property="og:description" content=""/>
    <meta property="og:type" content="website"/>
    <meta property="og:image" content="YOUR_PIC"/>
    <meta property="og:image:type" content="image/jpeg"/>
    <meta property="og:image:width" content="800"/>
    <meta property="og:image:height" content="420"/>
    <meta name="twitter:title" content="These 10 Celebrities Reveal That They Sleep N*ked!"/>
    <meta name="twitter:card" content="photo">
    <meta name="twitter:image" content="YOUR_PIC">
    <script type='text/javascript'>window.location.href='YOUR_WEBSITE_URL';</script>
     
  19. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    725
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    What's that do?
     
  20. EAmiraghyan

    EAmiraghyan Newbie

    Joined:
    Feb 28, 2016
    Messages:
    38
    Likes Received:
    6
    what do you think?