Cloaking facebook url

baxxx

Regular Member
Joined
Mar 25, 2012
Messages
258
Reaction score
68
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.

iVV9qry


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 ?
 
I second this. Need to figure out how to spoof og:url while controlling og:image, og:title, and og:description.

Anybody know?
 
i think you need the canonical tag
<link rel="canonical" href="http://www.example.com" />
 
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.
 
<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?
 
That is not wokring, its still displays my url instead of canonical one.
 
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
 
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.
 
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
b82iwh
b82jsz
b82knr
 
Wow thanks, send pp to PM :D
 
:D haha, na im just jokes about 10$ .. I'm glad to help anyway
 
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
b82iwh
b82jsz
b82knr

Images were deleted. Can you PM me the underlying code that allows you to spoof og:url? I'd be super greatful :)
 
images still there.. try right click then view image.
 
<!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>
 
<!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>
What's that do?
 
Back
Top