Sunday 15 December 2013

Memberi Info Internet sedang Gangguan Kepada Pelanggan Hotspot (otomatis script)

Pemberitahuan ini akan muncul di page login juragan berikut scriptnya :

Cari login.html di folder page login silahkan tambah kode berikut terserah letakan dimana :

<center><img src='http://s27.postimg.org/tfeybnnyr/image.png'
onerror="this.src='img/down.png'"/align="middle"></center>


gambar internet normal letakan di server luar sedangkan gambar inernet down letakan dilocal mikrotik

Penampakan jika internet normal :

penampakan jika internet down : 

Tinggal tambahkan diwaled garden gambar yang diletakan di server luar berikut scriptnya :

/ip hotspot walled-garden
add action=allow disabled=no dst-host=s27.postimg.org dst-port=80

cat. apabila gambar sama dengan diposting ini bisa langsung pastekan

Agar pelanggan hotpsot yang sedang login bisa lihat pesan di page login kalau internet sedang gangguan, kick secara otomatis dengan script berikut:

/tool netwatch
add comment=internet-down-hotspot disabled=no down-script=":local dumplist [/ip hotspot active find]\r\
    \n:foreach i in=\$dumplist do={\r\
    \n    /ip hotspot active remove \$i\r\
    \n}\r\
    \n:local dumplist [/ip hotspot cookie find]\r\
    \n:foreach i in=\$dumplist do={\r\
    \n    /ip hotspot cookie remove \$i\r\
    \n}" host=8.8.8.8 interval=30s timeout=1s up-script=""


jika diatas error tinggal pastekan di tools-netcwath-down :

:local dumplist [/ip hotspot active find]
:foreach i in=$dumplist do={
    /ip hotspot active remove $i
}
:local dumplist [/ip hotspot cookie find]
:foreach i in=$dumplist do={
    /ip hotspot cookie remove $i
}


sedangkan hostnya 8.8.8.8



Artikel Terkait:

Share This
Subscribe Here

1 comments:

Blog27999 on Sunday 1 March 2020 at 05:06:00 GMT+8 said...

Use this diet hack to drop 2 lb of fat in just 8 hours

More than 160,000 men and women are using a easy and SECRET "liquid hack" to burn 2 lbs each and every night as they sleep.

It's painless and it works every time.

You can do it yourself by following these easy steps:

1) Take a drinking glass and fill it up half full

2) Now learn this proven HACK

you'll become 2 lbs skinnier the next day!

 

Site Info

free counters

SyakirahNET Copyright © 2009 BeMagazine Blogger Template is Designed by Blogger Template
In Collaboration with fifa

Related Posts Plugin for WordPress, Blogger...