Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can userAgentRegExps is added by Meteor.settings? #2

Closed
fangjj opened this issue Mar 23, 2018 · 2 comments
Closed

Can userAgentRegExps is added by Meteor.settings? #2

fangjj opened this issue Mar 23, 2018 · 2 comments

Comments

@fangjj
Copy link

fangjj commented Mar 23, 2018

I'm in china, so want to add some other different UserAgentRegExps, so can be added by Meteor.settings. that is nice.

@prosf
Copy link
Collaborator

prosf commented Mar 26, 2019

@fangjj You can override them by importing the Spiderable plugin in Server-side code:
import { Spiderable } from "meteor/artlimes:meteor-chrome-headless-spiderable";

and then define your preferred Spiders list:

Spiderable.userAgentRegExps = [ /360spider/i, /adsbot-google/i, ..etc ]

@fangjj
Copy link
Author

fangjj commented Mar 27, 2019

that's fine.

@fangjj fangjj closed this as completed Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants