I've had other sites copy content and copy sites in full. But I recently experienced "copying" through iframes.

It was a large site that allowed realtors to create their own webpages for house listings. What happened is multiple "realtor" pages embedded one of my site's pages through iframes.

It looked to be a large site, so it seemed that there are individual bad actors in creating these pages.

I found them when going through the links in Google Search Console and saw nearly 100 backlinks from one domain. I checked out the backlinks and saw that they were exact duplicates of my pages. I looked at the page source to see that they were using iframes.

I tried the normal ways to get those pages taken down, but it wasn't until I happened to be talking to Dim about negative SEO attacks and copying of sites that he mentioned adding some htaccess code that can block external sites from using iframes on my site.

All it took was adding this security header code to htaccess:

<IfModule mod_headers.c>
Header set X-Frame-Options "SAMEORIGIN"

BUT, my site is on a LiteSpeed Server, so it doesn't allow mod_header changes in htaccess. I had to go searching for what to do. It took me a loooong time, but I finally found out how to implement the security headers in the vHost Conf file on the LiteSpeed Server.

context / {
X-Frame-Options SAMEORIGIN
rewrite {

Definitely look into security headers to protect your sites and content from attacks. Dim sent me that page and it's easy to read if you want to implement anything.

Big thanks to Dim for his help. Be sure to follow his LowFruits case study and check out his Niche Creator interview


Niche CreatorsNiche Creators


Tools and ResourcesTools and Resources

Link BuildingLink Building



Like Niche Surfer?