05 April 2012

Redirect ke Web Tertentu Setelah Login Hotspot Mikrotik

Banyak yang menanyakan permasalahan ini walaupun di forummikrotik.com sudah dibahas dengan detail. Tepatnya DISINI. Tutorial tersebut di posting oleh agan Arlinet. Jangan lupa kasih cendol beliau kalo menggunakan tutorial ini..hehe.
Langkah untuk Redirect ke Web Tertentu Setelah Login Hotspot Mikrotik adalah sebagai berikut :
  1. Login ke router mikrotik via ftp
  2. Cari File alogin.html di folder hotspot copy file tersebut ke folder komputer agan, jangan lupa buat file backup.
  3. Buka dan Edit sedikit script file tersebut. Sebagai contoh User akan Agan redirect ke google.com. Perhatikan script dibawah ini
  4. Scrip alogin asli : <title>mikrotik hotspot > redirect</title>
    <meta http-equiv=”refresh” content=”2; url=$(link-redirect)”>
    <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
    <meta http-equiv=”pragma” content=”no-cache”>
    <meta http-equiv=”expires” content=”-1″>
  5. Dirubah menjadi :<title>mikrotik hotspot > redirect</title>
    <meta http-equiv=”refresh” content=”0; url=http://www.google.co.id”>
    <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
    <meta http-equiv=”pragma” content=”no-cache”>
    <meta http-equiv=”expires” content=”-1″>
    <style type=”text/css”>
  6. Link harus Anda tulis lengkap dengan “http://” Karena kalo tidak url yang dituju malah menjadi “http://iprouter/www.google.com”
  7. Edit Juga script berikut : location.href = ‘$(link-redirect)’; menjadi  location.href = ‘http://www.google.com’;
  8. Simpan File alogin.html yang telah di edit tadi ke folder hotspot dan terakhir cek hasil editing Agan.
Cukup sekian tip & trik hari ini sampai jumpa di posting berikutnya.



sumber:http://kurei.wordpress.com/2010/09/25/redirect-ke-web-tertentu-setelah-login-hotspot-mikrotik/
Previous Post
Next Post
Related Posts

0 komentar: