Beranda > instalasi, script, setting > Customize Adzap – Menambah Situs Iklan Baru

Customize Adzap – Menambah Situs Iklan Baru

Ada beberapa situs iklan baru yang merupakan iklan Indonesia, dalam hal ini adalah kumpulblogger.com dan kliksaya.com.

Saya menambahkan file bernama post_match di /usr/local/adzap/rc (instalasi adzap saya sebelumnya).

# touch /usr/local/adzap/rc/post_match
# nano /usr/local/adzap/rc/post_match

Berikut ini isinya:

AD http://(scr1*.|)kliksaya.com/**
AD http://kumpulblogger.com/**

Supaya bisa di eksekusi saya ubah mode filenya …

# chmod +x /usr/local/adzap/rc/post_match

Kemudian saya menambahkan aturan baru ini sebagai aturan tambahan untuk adzap dengan setting di file adzap di /usr/local/adzap/scripts/wrapzap, dengan menuliskan lokasi file untuk variable dari

( ... another line ... )
ZAP_PREMATCH=                 # pathname of extra pattern file
                                        # for patterns to preempt the stock
                                        # zapper
ZAP_POSTMATCH=/usr/local/adzap/rc/post_match   # pathname of extra pattern file
                                        # for patterns in addition to the
                                        # stock zapper; this is the one to
                                        # which you should add new ads
ZAP_MATCH=                              # pathname of extra pattern file
                                        # for patterns to use instead of the
                                        # inbuilt pattern list
( ... another lines ... )

Kemudian jangan lupa untuk melakukan restart pada squid-nya.

# /etc/init.d/squid restart

Coba test dengan mengunjungi beberapa situs Indonesia.

Referensi:

Categories: instalasi, script, setting Tag:
  1. Belum ada komentar.
  1. Belum ada trackback.

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.