?i=1 Breaking OG Meta Tags

Hello! I’ve been trying to make this work as I am hosting a small personal website for my own use (for portfolios and resumes and stuff). Two problems that have been bugging me is that when I check the Open Graph Meta tags using tools (Facebook, Twitter and LinkedIn has checkers) it seems that they cannot fetch the tags. I’ve been trying to troubleshoot this for the past few hours and I realized that the one causing problems is the website protection that the admin uses. I read it here ([what is the ?i=1.. ?](https://forum.infinityfree.net/t/what-is-the-i-1/6263)) . I don’t have any problems with this. It’s just that when I tried to do a file_get_contents to my site it turns out that the data being fetched to try and check the Open Graph tags is the script that is used to protect the site and not my homepage that contains the OG tags. Is there any other way of going around this?

It also broke 2 things on my site, and that is Pretty URLs and infinite redirect loop if I try to turn on Cloudflare’s “Always HTTPS” feature, which is kind of bizarre as basically the admin of this site is forcing you to disable automatic redirect to HTTPS which is way worse than malicious bots trying to mine some useless homepage data.

Hi

Please give us the address of your website (so that we can check your code) !

The website is: “thisjt.me

I assume you use WordPress?

We’ll see when your site starts working properly (without loop)

if you are on Cloudflare then it should not appear ?i=1

But I also tested it without cloudflare and there is no problem for The Open Graph protocol.
The problem is that some online tools for this check are not smart enough and do not support javascript so they are not able to calculate what the security script asked them to and then they just aren’t able to figure out your website (the security system rejects them).

3 Likes

I am not using wordpress. It’s a custom-made website. I fixed some of the code that prevented the infinite loop redirect. If you’ll check the source code of my site, you’ll see the meta tags being set.

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="THISJT.ME - Personal Website">
<meta property="og:description" content="This is a personal website that has basics details about Joshua and his works. You can also find here ways to contact him for inquiries.">
<meta property="og:image" content="https://thisjt.me/images/meta_landing.jpg">
<meta property="og:url" content="https://thisjt.me/">
<meta name="twitter:card" content="https://thisjt.me/images/meta_landingbig.jpg">
<meta name="description" content="This is a personal website that has basics details about Joshua and his works. You can also find here ways to contact him for inquiries.">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://thisjt.me/">

<meta property="og:site_name" content="THISJT.ME - Personal Website">
<meta name="twitter:site" content="@thisjoshuatee">

If I check the OG meta tags using Facebook’s built-in meta tag debugger, it does not show up anything.
https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fthisjt.me

  • Could Not Follow Redirect
  • URL requested a HTTP redirect, but it could not be followed.
  • Inferred Property
  • The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
  • Missing Properties
  • The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id

When I tried scraping my own website using file_get_contents from XAMPP (localhost server), this is the response that it gave me, which is NOT my website code. The meta tags should be showing up here.

<html>
<body>
    <script type="text/javascript" src="/aes.js"></script>
    <script>
    function toNumbers(d) {
        var e = [];
        d.replace(/(..)/g, function(d) {
            e.push(parseInt(d, 16))
        });
        return e
    }

    function toHex() {
        for (var d = [], d = 1 == arguments.length && arguments[0].constructor == Array ? arguments[0] : arguments,
                e = "", f = 0; f < d.length; f++) e += (16 > d[f] ? "0" : "") + d[f].toString(16);
        return e.toLowerCase()
    }
    var a = toNumbers("//i-erased-this-for-security-reasons//"),
        b = toNumbers("//i-erased-this-for-security-reasons//"),
        c = toNumbers("//i-erased-this-for-security-reasons//");
    document.cookie = "__test=" + toHex(slowAES.decrypt(c, 2, a, b)) +
        "; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";
    location.href = "https://thisjt.me/?i=1";
    </script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a
        browser with Javascript support</noscript>
</body>

If this is too much to ask for a free site, then can you at least passthrough the OG meta tags?

you still have a loop problem (this time from https to https)

1 Like

Did you try opening the site? There’s no more infinite loops. I even tried removing all the HTTP redirects and disabled cloudflare’s “Force HTTPS”, but the Facebook’s Open Graph Debugger still says that I am trying to redirect from https to https.

press ctrl + F5 to clear the cache
of course I tried (and I and all the other tools see that you still have redirection)

https://www.webpagetest.org/result/200524_33_e9fa9d933fc822afcf97967d0a8f04ba/

1 Like
<!-- add here for FB  (1) -->
<meta property="og:title" content="THISJT.ME - Personal Website">
<meta property="og:description" content="This is a personal website that has basics details about Joshua and his works. You can also find here ways to contact him for inquiries.">
<meta property="og:image" content="https://thisjt.me/images/meta_landing.jpg">
<meta property="og:url" content="https://thisjt.me/">

<!-- add here for TW (2) -->
<meta name="twitter:card" content="https://thisjt.me/images/meta_landingbig.jpg">
<meta name="description" content="This is a personal website that has basics details about Joshua and his works. You can also find here ways to contact him for inquiries.">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://thisjt.me/">

<meta property="og:site_name" content="THISJT.ME - Personal Website">
<meta name="twitter:site" content="@thisjoshuatee">

For og code it would be good to add this (1)

<meta property="og:type" content="article">

also for TW (2)

<meta name="twitter:card" content="summary">

because it is necessary to say in advance what kind of card it is

1 Like

you see it working because the forum also recognized it :smile:

1 Like

Thanks. It feels weird that it’s working in my part even if the scraper is seeing an infinite http redirect. I usually use CTRL+SHIFT+R to refresh the cache and sometimes CTRL+F5 but it seems that it’s working fine on my end.

Thank you for the assistance. Will be cleaning up my redirect code now.

1 Like

Oh my :smile:

1 Like

Good luck :smile:
I go to sleep

1 Like