2013-01-18

LikeApache - htaccess on Nginx

Nginx does not use .htaccess file for the performance issue.

See details at LikeApache-htaccess

2012-12-10

How to control access based upon IP(s) with IIS


How to control access based upon IP(s) with IIS
  • Install [IP and Domain Restrictions]
    1. Run Server Manager and open [Roles > Web Server (IIS)]
    2. Scroll down to [Role Services] at [Summary]
    3. Click [Add Role Services] on right pane
    4. Check [IP and Domain Restrictions] on [Role Services > Web Server > Security]
    5. Click [Install]
  • Block clients by IP
    1. Run IIS Manager and select a specific site or folder
    2. Open [IPv4 Address and Domain Restrictions]
    3. Open [Edit Feature Settings] to set an option for DENY or ALLOW from all
    4. Open [Add Allow/Deny Entry] to add IP or IP range

2012-10-09

DoEvent for WPF

System.Windows.Application.Current.Dispatcher.Invoke
(
 DispatcherPriority.Background,
 new System.Threading.ThreadStart
 (
  delegate { }
 )
);