Specific webside allow on specific ipaddress

Protecting your Linux box
Post Reply
majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Specific webside allow on specific ipaddress

Post by majidnazeer »

Hi all!

I want to allow specific webside on specefic ipaddress. For example i want to allow on hotmail webside for particular user instead of all.

Thanks in Advance
AsadRasheed
Battalion Quarter Master Havaldaar
Posts: 228
Joined: Fri Jan 28, 2005 6:23 pm
Location: Karachi

Salam

Post by AsadRasheed »

Dear majidnazeer,

Plz define your question , your question is incomplete which os you using and all
other details like you want flitering in squid ?

Regards,
M Asad Rasheed
registered linux user #394856
http://www.bsdpakistan.org
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear majidnazeer,
Salam,

Use IPtables !!

e.g you want to allow 192.168.0.1 to surf hotmail.com then use the following rules and all other will get rejected !!

# iptables -I INPUT -s 192.168.0.1 -d hotmail.com-ip -j ACCEPT
# iptables -I INPUT -d hotmail.com-ip -j DROP


Best Regards.
Farrukh Ahmed
majidnazeer
Naik
Posts: 60
Joined: Wed Oct 05, 2005 12:37 pm

Specific webside allow on specific ipaddress

Post by majidnazeer »

Thanks a lot Farrukh.
Post Reply