Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2662 → Rev 2661

/scripts/alcasar-url_filter_bl.sh
89,17 → 89,11
echo "address=/$yt_dnsname/$youtube_safe_server" >> $DNSMASQ_BL_CONF
done
 
# add 'SafeSearch' redirection for qwant searching
$SED "/qwant/d" $DNSMASQ_BL_CONF # remove old qwant declaration
qwant_safe_server=`host -ta safeapi.qwant.com | grep "address" | cut -d" " -f4` # retrieve qwant strict ip
echo "# SafeSearch redirect server for qwant" >> $DNSMASQ_BL_CONF
echo "address=/api.qwant.com/$qwant_safe_server" >> $DNSMASQ_BL_CONF
else
$SED "s?^[^#]?#&?g" $DIR_DG/urlregexplist
$SED "/google/d" $DNSMASQ_BL_CONF
$SED "/bing/d" $DNSMASQ_BL_CONF
$SED "/youtube/d" $DNSMASQ_BL_CONF
$SED "/qwant/d" $DNSMASQ_BL_CONF
fi
if [ $pureip == "On" ]
then
/scripts/alcasar-url_filter_wl.sh
86,17 → 86,10
echo "address=/$yt_dnsname/$youtube_safe_server" >> $DNSMASQ_WL_CONF
done
echo "add wl_ip_allowed $youtube_safe_server" >> $IP_WL
 
# add 'SafeSearch' redirection for qwant searching
$SED "/qwant/d" $DNSMASQ_WL_CONF # remove old qwant declaration
qwant_safe_server=`host -ta safeapi.qwant.com | grep "address" | cut -d" " -f4` # retrieve qwant strict ip
echo "# SafeSearch redirect server for qwant" >> $DNSMASQ_WL_CONF
echo "address=/api.qwant.com/$qwant_safe_server" >> $DNSMASQ_WL_CONF
else
$SED "/google/d" $DNSMASQ_WL_CONF
$SED "/bing/d" $DNSMASQ_WL_CONF
$SED "/youtube/d" $DNSMASQ_WL_CONF
$SED "/qwant/d" $DNSMASQ_WL_CONF
rm $IP_WL
fi
systemctl restart dnsmasq-whitelist