Fragment Content Using PHP


This is an old trick I used to use to get a webpage to be found in search engines for content that was not displayed on the visible page.

Place the following in the <head> section of the webpage.

<meta name="fragment" content="!">

Place the following before the </body> tag and add the content you would like the page to be additionally found for in Google's SERPs.

<? if (isset($_GET['_escaped_fragment_'])) : ?>
/* content goes here */
<? endif; ?>

Need proof on concept ?

Enjoy making your mates wonder how you just did that ;)

I do not use cookies on this website

🍪🍪 What cookies?

Your privacy is important. That's why this website doesn't track visitors with fingerprinting, your IP address or cookies.

Web analytics data is your own. Reclaim it.

Gain back control with a privacy-focused web analytics platform (using a cookie-less architecture) from: Data Centurion.