thegoldeneye
Power Member
- Oct 26, 2015
- 544
- 520
Hi everyone, goldeneye is back after the hard breakup from the end of the last year! I survived and I would like to thank everyone for the tips and support.
So I would like to share with you this “secret” that I knew but didn't think it’s important to share here.
I checked the website that one of the members shared here and it has “premium” content that is protected. In order to see the content you have to be logged in and to log in you need to buy the access.
The devil never sleeps so I wanted to check how secure his site is and I was able to see all the pages/posts he has. If I wanted I could use some of the scrapers and scrape all his content.
What am I talking about?
I’m talking about the WordPress REST API access and you can do it by going to: www.SomeWordPressSite.com/wp-json/wp/v2
You can find a lot of things here but the most important API points are:
- /wp-json/wp/v2/pages
- /wp-json/wp/v2/pages/pageID
- /wp-json/wp/v2/posts
In order to protect your site you have to install this plugin:
https://wordpress.org/plugins/disable-wp-rest-api/
Just install and activate, and you are good to go!
This is what guest users are going to see:
Now the fun part!
How to scrape this?
There are two ways, manually or by using some of the scrapers.
Manually you would need to install “JSONVue” chrome extension.
As you can see here we can know that this website is using “Avada Fusion Builder” and we can just copy/paste there and it will be visible for us. There are some free/paid scrapers there but I am using this one https://dedomena.org/ for cloning WordPress websites. You can scrape everything with this in a few seconds and just import it to your new website. If you want to clone it 100% just check which theme/plugins the site is using and that’s all. For example, if I know that the site from my example is using Avada Fusion Builder, I just have to install Avada and I’m good.
I hope you will like this tutorial, and also I hope it will be helpful. If you have any questions, feel free.