- Photo Gallery
- Chicagoland Good & Cheap Restaurants
- Chicagoland Filipino Food Sources
- Coffee shops near Chicago 'El' Stations
- My salad foodhack
- OmniCode
- Backing up photographs: my way
- Badminton photography: my way...
- How I manage my social life…
- Monte Carlo Simulations for Retirement planning (in Perl)
- What D&D Character Am I?
- Skype Settings with Ubuntu 8.10 Intrepid Ibex
- Laser pointer sniper game
- CTA Text Tracker
- Establishing a Low-cost Web Presence
- Homebrew bike lights
- How to enable remote XWindows on Portable Ubuntu
- Combining mod_security and phpMyAdmin for Ubuntu
- Perl Metromix scraper
- Script to copy Podcast files to USB drive
- Updating ipfilter.dat using wget
- Personal Finance 1
- Personal Finance 2
- Beer I've Tasted
- Sports Selection via Pondex
- My Public Key
- Contact us
Updating ipfilter.dat using wget
You won't be able to download ipfilter.dat using a regular wget. Apparently, the server checks referer and what agent is downloading the file.
Solution: Make your wget request look and act like a regular browser.
#!/bin/bash
# NOTE: change "user1" to the user's directory name OR where the ipfilter.dat file resides
cd /home/user1/.azureus
wget -N --referer="http://voxel.dl.sourceforge.net/sourceforge/emulepawcio/ipfilter.dat" \
-U "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7" \
http://voxel.dl.sourceforge.net/sourceforge/emulepawcio/ipfilter.dat
- Wordpress category:
