Wednesday, February 23, 2011

Secret Items on the Windows 7 Send To Menu

While poking around in Windows 7, I discovered extra context menu items using the same Shift + Right-click trick we used to open a command prompt from the desktop menu, and we’ve got big colorful screenshots to show you today.

Viewing the Secret Items

These are the default items that you should see on the Send To menu when you right-click on a file:
Windows 7 Send To Menu


Hold down the Shift key while right-clicking on the icon, and then try the Send To menu… all sorts of extra options!
Windows 7 Send To Secret Items


If you want any of those to show up normally without holding down the Shift key, you can create shortcuts in the Send To folder. Just type the following into the location bar:

shell:sendto

And then drag shortcuts to your preferred folders into this folder.
Windows 7 shell:sendto Menu


I’ve found that using custom shortcuts in the Send To menu can be very handy… I use them to upload images to the HTG web server on a daily basis.
Read More

Wednesday, February 16, 2011

Memblok Situs Tidak Baik Menggunakan SquidGuard

Kali ini saya ingin melanjutkannya dengan menuliskan pengalaman saya membuat proxy server yang berfungsi untuk: membatasi akses internet ke alamat tertentu menggunakan program redirect squidGuard dan database-nya yang menampung jutaan situs dalam berbagai kategori.

Sampai tulisan ini saya buat, datatabase-nya memiliki puluhan kategori. Panduan instalasi dan konfigurasinya secara lengkap dapat ditemukan di situs resmi squidGuard. Kenapa saya membuat hal ini? Permasalahan bahwa situs yang terdaftar dalam blacklist manual sangatlah terbatas, dan saya melihat ada program open source yang sangat bagus dan biasanya disandingkan dengan squid, so saya mencobanya… Dan ternyata setelah berhasil, rasanya terasa nyaman dan menyenangkan. squidGuard sudah membantu pekerjaan saya. hehe…

Langkah-langkah yang saya lakukan adalah:

1. Instalasi SquidGuard

Untuk menginstalasi SquidGuard anda membutuhkan software pendukung seperti:

Siapkan Squid. Cara install squid dapat dilihat disini.

Siapkan Bison dan Flex
# apt-get install bison flex

Untuk install Berkeley DB
# apt-get install libdb4.8-dev

Ambil source code SquidGuard dari
http://www.squidguard.org/download.html

Buka source code squidGuard
# tar zxvf squidGuard-1.4.tar.gz

Compile
# cd squidGuard-1.4
# ./configure --with-squiduser=proxy
# make

Jika tidak ada error maka squidGuard terinstalasi di /usr/local/. Pilihan lain untuk melakukan ./configure. Jika squidGuard di instal di directory lain,
# ./configure --prefix=/some/other/directory

Jika BerkeleyDB tidak berada di /usr/local/BerkeleyDB
# ./configure  --with-db=/directory/of/BerkeleyDB/installation

atau, misalnya,
# ./configure --with-db=/usr/local/BerkeleyDB.4.6/

Install squidGuard
# make install

Akan keluar message berikut
Installing squidGuard
Done.
Installing configuration file
Created directory /usr/local/squidGuard/db
Assigned /usr/local/squidGuard/db to user proxy
Created directory /usr/local/squidGuard/log
Assigned /usr/local/squidGuard/log to user proxy
Copied sample squidGuard.conf
/usr/local/squidGuard/squidGuard.conf is now readable
The initial configuration is complete.
Congratulation. SquidGuard is sucessfully installed.


2. Instalasi Database Blacklist

Download Database Blacklist disini. Copy file blacklist tersebut ke directory blacklist defaultnya di /usr/local/squidGuard/db Pastikan anda mempunyai permission untuk menulis ke directory tersebut, lakukan,
# cp /path/to/your/blacklist.tar.gz /usr/local/squidGuard/db
# cd /usr/local/squidGuard/db
# gzip -d blacklist.tar.gz
# tar xfv blacklist.tar

Contoh struktur Directory di /usr/local/squidGuard/db
drwxr-sr-x 17 proxy staff     4096 Feb 16 12:49 .
drwxr-sr-x 4 root staff 4096 Feb 16 12:51 ..
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 ads
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 aggressive
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 audio-video
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:49 blacklists
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 drugs
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 gambling
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 hacking
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 mail
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:50 porn
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 proxy
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 redirector
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 spyware
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 suspect
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 violence
drwxr-sr-x 2 proxy staff 4096 Feb 16 12:44 warez

Sekarang blacklist siap digunakan


3. Konfigurasi SquidGuard

Konfigurasi Default SquidGuard ada di
/etc/local/squidGuard/squidGuard.conf

Konfigurasi yang paling sederhana hanya satu kategori, satu aturan untuk semua.
#
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/logs
dest porn {
domainlist porn/domains
urllist porn/urls
}
acl {
default {
pass !porn all
redirect http://localhost/block.html
}
}

Jika kita memilih lebih dari satu kategori untuk di blok dapat menggunakan contoh berikut,
dest adv {
domainlist adv/domains
urllist adv/urls
}
dest porn {
domainlist porn/domains
urllist porn/urls
}
dest warez {
domainlist warez/domains
urllist warez/urls
}

ACL yang kita gunakan sebagai berikut
acl {
default {
pass  !adv !porn !warez all
redirect http://localhost/block.html
}
}

Kita juga dapat melakukan whitelist (lawannya blacklist) melalui konfigurasi berikut
dest white {
domainlist white/domains
urllist white/urls
}
acl {
default {
pass white !adv !porn !warez all
redirect http://localhost/block.html
}
}

Sebelum di aktifkan, kita perlu menginisialisasi blacklist, mengkonversikan file text blacklist menjadi file database agar mempercepat proses cek dan blocking. Proses inisialisasi menggunakan perintah
# squidGuard -dC all
# chown -R <squiduser> /usr/local/squidGuard/db/*

Harusnya anda akan melihat di log kira-kira message berikut,
2011-02-16 12:16:14 [31977] squidGuard 1.4 started (1138533256.959)
2011-02-16 12:16:14 [31977] db update done
2011-02-16 12:16:14 [31977] squidGuard stopped (1138533374.571)



4. Integrasi squidGuard ke Squid

Pastikan file blacklist dan db dimiliki oleh user squid. Jika squid tidak bisa akses maka proses blocking tidak jalan.

Test squidGuard
# echo "http://www.music.com 192.168.0.233/ - - GET" | squidGuard -c /usr/local/squidGuard/squidGuard.conf -d
Yang berwarna merah itu ip server dimana squidGuard diinstall

Jika berjalan dengan baik & situs example.com bukan situs yang di block maka akan tampak pada log
2007-03-25 16:18:05 [30042] squidGuard ready for requests (1174832285.085)
2007-03-25 16:18:05 [30042] squidGuard stopped (1174832285.089)

Masukan squidGuard ke squid.conf, perhatikan baik-baik path yang digunakan harus sesuai dengan yang anda gunakan,
redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
redirect_children 10


Sumber: squidGuard Documentation


.
Read More

Tuesday, February 15, 2011

Web Proxy Server di Windows dengan SquidNT

Web/HTTP Proxy Server berguna untuk menyimpan/caching file-file tertentu dari halaman-halaman web yang pernah diakses oleh client sehingga jika client yang lain mengakses website yang sama, maka file-file tadi akan diambilkan dari cache proxy.

Hal ini untuk mempercepat akses internet dan mengurangi kepadatan trafik di jalur internet, karena beberapa file diambil dari server,bukan dari internet secara langsung. Hanya saja saya tidak membahas web proxy server untuk banyak komputer / di dalam jaringan. Melainkan untuk komputer pribadi yang terhubung dengan Inet pastinya.

So, mudah – mudahan dengan pendahuluan diatas kita dapat mengerti apa itu web proxy dan kegunaannya. Emang biasanya yang menangani web proxy server adalah server – server ataupun router OS keluaran dari Linux, ada beberapa macam sistem operasi yang saya ketahui mempunyai fasilitas penanganan web proxy diantaranya : Ubuntu, ClearOS, Mikrotik dan Aplikasi tambahan Squid.

Nah, Sekarang mari kita mulai untuk membahas aplikasi apa yang digunakan untuk membangun web proxy di windows? Di Sistem Operasi Windows XP emang fasilitas untuk web Proxy tidak ada, akan tetapi kita dapat menggunakan aplikasi keluaran dari linux yang dapat berjalan di windows yaitu SQUIDNT, dengan SQUIDNT ini kita membangun yang namanya web proxy server, yah seperti yang saya katakan tadi diatas web proxy nya untuk 1 komputer aja yah. Mungkin bisa untuk seluruh komputer dalam jaringan tapi saya ndak tau konfigurasinya.. MAAF yah…

OK langsung aja deh kita mulai langkah – langkah pembuatannya…

1. Download SQUIDNT

2. Instalasi
Setelah di download ekstrak file Squid di Drive C:/ menjadi C:/squid – Buka Direktori “C:/squid/etc“, maka akan terdapat 4 file yaitu:
  • cachemgr.conf.default

  • mime.conf.default

  • squid.conf.default

  • squid_radius_auth.conf.default

Copy 3 File yang terdapat pada direktori "C:/squid/etc" yaitu :
  • cachemgr.conf.default =>cachemgr.conf
  • mime.conf.default => mime.conf
  • squid.conf.default => squid.conf

Buka File Squid.conf, hapus semua isi yang ada pada file squid.conf dan ganti dengan perintah dibawah ini :

http_port 3128
dns_nameservers 8.8.8.8
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access allow localhost
http_access allow localnet
http_access deny manager
http_access deny !Safe_ports
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
access_log c:/squid/var/logs/access.log
coredump_dir c:/squid/var/cache

Note: untuk teks yang berwarna merak diisi dengan IP DNS dari ISP masing – masing atau bisa mengikuti yang saya buat dengan menggunakan IP DNS Google

3. Konfigurasi SQUIDNT
  • Buka command prompt di Windows membuka Run (Windows + R) dan ketikkan cmd lalu buka direktori C:\squid\sbin> dengan cara ketik cd C:\squid\sbin>
  • Ketikkan perintah squid -z untuk membuat swap direktori squid, tunggu hingga selesai
  • Lanjutkan dengan perintah squid -d l -D untuk membuat cache, jika sudah running, tekan Ctrl+c untuk kembali ke cmd
  • Kemudian ketikkan squid -i
  • Dan yang terakhir ketikkan squid -O -D


4. Menjalankan Squid Service
  • Ketikkan services.msc di Run dan cari service yang bernama Squid, klik kanan pilih start
    squid Services Web Proxy Server di Windows dengan SquidNT

  • Untuk memastikan service telah berjalan, cek di Task Manager
    squid Task Web Proxy Server di Windows dengan SquidNT
  


    5. Konfigurasi Mozilla Firefox
    Disini saya hanya menerangkan cara penggunaan di Mozilla Firefox karena saya hanya menggunakan mozilla firefox saja, bila ada yang menggunakan browser lain bisa di coba sendiri.

    Buka Mozilla, masuk ke Tools | Options | Advanced | Network | Settings | pilih “Autodetect proxy settings for this network”





    .
    Read More

    ppppp

    //
    // Check and set various parameters
    //
    $params = array('submit' => 'post', 'preview' => 'preview', 'delete' => 'delete', 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode');
    while( list($var, $param) = @each($params) )
    {
    if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) )
    {
    $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? htmlspecialchars($HTTP_POST_VARS[$param]) : htmlspecialchars($HTTP_GET_VARS[$param]);
    }
    else
    {
    $$var = '';
    }
    }

    $confirm = isset($HTTP_POST_VARS['confirm']) ? true : false;
    $sid = (isset($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : 0;
    lpllpll
    //
    // Check and set various parameters
    //
    $params = array('submit' => 'post', 'preview' => 'preview', 'delete' => 'delete', 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode');
    while( list($var, $param) = @each($params) )
    {
    if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) )
    {
    $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? htmlspecialchars($HTTP_POST_VARS[$param]) : htmlspecialchars($HTTP_GET_VARS[$param]);
    }
    else
    {
    $$var = '';
    }
    }

    $confirm = isset($HTTP_POST_VARS['confirm']) ? true : false;
    $sid = (isset($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : 0;
    lplplpl
    Read More

    Google Earth Temukan Situs Arkeologi Jazirah Arab


    Hampir 2.000 situs arkeologi potensial di Arab Saudi berhasil dijelajahi oleh seorang arkeolog asal Perth, Australia, David Kennedy, tanpa mengunjunginya secara langsung. Ini berkat aplikasi Google Earth.

    "Saya belum pernah ke Arab Saudi. Itu bukan negara yang mudah untuk ditembus," ujar profesor arkeologi Universitas Western Australia ini dalam penuturannya kepada Telegraph. Sebagai gantinya, Kennedy memindai area seluas 1.240 kilometer persegi di Arab Saudi menggunakan Google Earth.

    Dari gambar satelit dunia maya beresolusi tinggi itu, ia menemukan sedikitnya 1.977 situs arkeologi potensial, termasuk sebanyak 1.082 makam purbakala yang terbuat dari batu.

    Menurut Kennedy, pembuatan foto udara Arab Saudi tidak bisa dilakukan oleh semua arkeolog karena faktor kesulitannya yang tinggi, bahkan mustahil terbang di udara negeri itu. Akan tetapi, Google Earth dapat membuat mereka lebih dekat.

    Sejak aplikasi Google Earth diluncurkan lima tahun lalu, peluang mengembangkan "arkeologi dari belakang meja" itu memang terbuka lebar-lebar. Meskipun demikian, Kennedy menegaskan, verifikasi lapangan tetap diperlukan. Ia memiliki staf di Arab Saudi untuk memverifikasi ke lokasi situs.

    Pada 2008, para peneliti dari Melbourne, Australia, menemukan 463 situs purbakala potensial di Gurun Registan di Afganistan hanya dengan memanfaatkan komputer mereka.
    Read More

    History of Computing Information

    History of Computing Information

    Information about the history of computing, assembled by Mike Muuss for your information and edification. Documents from the home of the ENIAC -- The U. S. Army Research Lab .




    .
    Read More

    Historic Computer Images

    Historic Computer Images

    This photo collection is one portion of my collection of History of Computing Information documents (seminal reports, 200+ pages online).

    Here is a collection of high resolution 400 dpi scans made by Mike Muuss for his Computer History archive. All of them were scanned on a Canon CLC-500 color scanner/printer.

    See below for full information on Use and Publication Rights.

    See below for details on the five different file types available.
    Read More