[SOLVED] Protect Against Scraping

11 years 6 months ago - 11 years 6 months ago #213740 by securepro
[SOLVED] Protect Against Scraping was created by securepro
We have a freemium website that has a lot of information we compiled at great expense. We don't want anyone signing up at the free level, scraping the information and creating a competing site. (It already happened once).

Is there any way to limit the number of profiles a user can view in a time period? (maybe an hour or a day or a month)?

Please Log in to join the conversation.

11 years 6 months ago #213747 by krileon
Replied by krileon on topic Re: Protect Against Scraping
Yes, you'll need to first install CB Query Field then query the _comprofiler_views database table for how many page views they have for the day. Once done use CB Auto Actions with the before profile display trigger and condition for that query field in a redirect action to send them away from profile (you can include a message in the redirect). Aside from that you'd need to develop a custom solution.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: securepro

Please Log in to join the conversation.

11 years 6 months ago #213749 by securepro
Replied by securepro on topic Re: Protect Against Scraping
Kyle. Thank you for the quick answer. 5 Minutes is freaking awesome support!
I will give it a try.

Please Log in to join the conversation.

11 years 6 months ago - 11 years 6 months ago #213766 by securepro
Replied by securepro on topic Re: Protect Against Scraping
OK. Almost there.
I created the Query field. I created the Auto Action.

However when the number in the Query field is exceeded,
it blocks the user from "My Profile".

I want it to block the user from seeing someone else's profile.

My Auto Action settings are:
  • Type: Redirect
  • Trigger: onBeforeUserProfileDisplay
  • Access: Multi selected all

Thoughts?
Thanks, Greg

Please Log in to join the conversation.

11 years 6 months ago #213772 by securepro
Replied by securepro on topic Re: Protect Against Scraping
I figured out what is happening but not how to work around it.
The Query field I created is [cb_todayspageviews].

My Auto Action Conditional is [cb_todayspageviews] "Greater Than" "10".

The result is Auto Action acting on the value of the requested profile's [cb_todayspageviews] rahter than the user trying to view the profile.

Please Log in to join the conversation.

11 years 6 months ago #213773 by securepro
Replied by securepro on topic Re: Protect Against Scraping
I figured it out. Used the following and it works like a charm.

[cb:userfield field="cb_todayspageviews" user="#me" /]

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.228 seconds

Facebook Twitter LinkedIn