Description
This is a plugin to be used with your Prerender server to avoid requesting to any blacklist extensions such as image, css, fonts etc
Prerender Request Blacklist alternatives and similar modules
Based on the "Url" category.
Alternatively, view Prerender Request Blacklist alternatives based on common mentions on social networks and blogs.
-
speakingurl
Generate a slug – transliteration with a lot of options -
linkify-it
Links recognition library with full unicode support -
url-pattern
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings. -
humanize-url
Humanize a URL: https://sindresorhus.com → sindresorhus.com -
embedza
Create HTML snippets/embeds from URLs using info from oEmbed, Open Graph, meta tags.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Prerender Request Blacklist or a related project?
README
Prerender Request Blacklist
This is a plugin to be used with your Prerender server to avoid requesting to any blacklist extensions such as image, css, fonts etc
Install
npm install prerender-request-blacklist --save
server.js
const prerender = require('prerender');
const server = prerender();
server.use(require('prerender-request-blacklist'));
server.start();
Test it
curl http://localhost:3000/render?url=https://www.example.com/
Options
List of blacklist data separated by ,
export BLACKLISTED_EXTS=css,jpg
export BLACKLISTED_DOMAIN=google.com
export BLACKLISTED_MATCH=regex_pattern
For example:
export BLACKLISTED_EXTS=ico,jpg,jpeg,png,ttf,eot,otf,woff,woff2,gif,svg,pdf,css,svg
export BLACKLISTED_DOMAIN=www.googletagmanager.com,googletagmanager.com,www.google-analytics.com,google-analytics.com,connect.facebook.net,lc.iadvize.com,fonts.gstatic.com,gstatic.com,i.ytimg.com,www.youtube.com,vimeo.com,www.vimeo.com,baidu.com,f.vimeocdn.com,fresnel.vimeocdn.com,player.vimeo.com,i.vimeocdn.com,youtube.com,player.youtube.com,stats.g.doubleclick.net,static.iadvize.com,api.iadvize.com
export BLACKLISTED_MATCH=^[^ignore]+$