milis/bin/hostlari_yenile

12 lines
403 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# /etc altındaki hosts dosyasını yeniler ve istenmeyen reklam ve sitelerden korunulur.
cd /tmp
#wget http://sbc.io/hosts/hosts
wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
mv /etc/hosts /tmp/hosts-eski
mv hosts /etc/hosts
# eğer home dizini altında .hosts dosyanız varsa onu /etc/hosts dosyasına ekler.
if [ -f ~/.hosts ]; then
cat ~/.hosts >> /etc/hosts
fi