sebelum mempraktekkan tutorial ini, harus sudah menginstal dan konfigurasi proxy squid. untuk melihat langkah install proxy squid dan konfigurasinya klik disini

disini kita belajar merubah tulisan yg berwarna kuning pada gambar diatas

pertama masuk ke disektori english

root@server:cd /usr/share/squid/errors/English

Dalam direktori tersebut terdapat banyak sekali file-file laman error SQUID. Semua file tersebut menggunakan
pemrograman web HTML saja. Kita hanya akan memodifikasi untuk laman web yang diblokir, dan dns-un-resolveable

lalu untuk mengeditnya buka :

root@server:/usr/share/squid/errors/English# vi ERR_DNS_FAIL

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!--   %l  body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; }  --></style> </head><body id=%c> <div id="titles"> <h1>AWAS!!!</h1> <h2>HALAMAN KADALUARSA</h2> </div> <hr>  <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="%U">%U</a></p>  <blockquote id="error"> <p><b>Unable to determine IP address from host name <q>%H</q></b></p> </blockquote>  <p>The DNS server returned:</p> <blockquote id="data"> <pre>%z</pre> </blockquote>  <p>This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.</p>  <p>Your cache administrator is <a href="mailto:%w%W">%w</a>.</p> <br> </div>  <hr> <div id="footer"> <p>Generated %T by %h (%s)</p> <!-- %c --> </div> </body></html                  

tulisan yg berwarna merah bisa diganti sesuka anda!

lalu restart squidnya

root@server:~# /etc/init.d/squid restart








sekian.....                                           

0 komentar:

Posting Komentar

 
Top