Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Delphi: Сети > Block IP address


Автор: randy 15.5.2009, 01:46
Hi , i want to be able to Block an IP Address , Let me suppose the Flowing :

i have this IP Address ( 10.25.xx.xx ) , when i want to visit it , it will be blocked and a replaced by test.htm page ( Like the Websense ) .


Thank you 

Автор: misha_mike 27.5.2009, 16:30
IP address cannot be blocked by replacing with HTML page. It is different entities: test.htm is a disk file, IP -- a network address.

There is next ways to block unusual site:
By browser (for example, Opera have filter by URL).
By proxy (most can block by IP and by URL with generating HTTP answer with your file).
By firewall (simply block IP and site will not be displayed at all).
By hosts file (assign your domain name with 127.0.0.1).

Автор: MetalFan 27.5.2009, 17:47
Цитата(misha_mike @  27.5.2009,  16:30 Найти цитируемый пост)
By hosts file (assign your domain name with 127.0.0.1). 

...and then run http server on 80 port and send to user test.htm

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)