LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-14-2004, 09:57 AM   #1
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
iptables - Blocking an URL


Hello,
Please tell me how can I block an Url. I want something like this:
iptables -A FORWARD -s $MYNET -d www.xxxx.com -j DROP

It does'n work.
I want to block an url not an IP. Is this possible with iptables?


Thanks
dda
 
Old 10-14-2004, 01:04 PM   #2
ithawtewrong
Member
 
Registered: Jul 2004
Location: Mile High
Posts: 161

Rep: Reputation: 30
I am no expert, but I did read the Tutorial at http://iptables-tutorial.frozentux.n...-tutorial.html recently.
(reference table 6.4 on this page)

It appears to me you could use CIDR format only. I'm thinking you could resolve the URL to an IP or IP range if it has mutiple host
then block it that way. I didn't see anything about blocking a URL though. (eg...192.168.0.1/24)

If anyone else knows another way I'd be curious to know myself.
 
Old 10-14-2004, 06:36 PM   #3
anacOndazz
LQ Newbie
 
Registered: Oct 2004
Location: Europe
Distribution: Knoppix
Posts: 18

Rep: Reputation: 0
Lightbulb Iptables

Try install a gui. like Firestarter ~ it 's working fine ~ or read a bit the man page of Iptables. As incerca firestarter daca as fi in locu' tau.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
blocking an IP using iptables picox Linux - Security 7 12-10-2010 02:00 PM
Blocking Emule with Iptables Palula Linux - Networking 12 08-26-2005 12:21 PM
Change the destination URL by IPTABLES swmok Linux - Networking 4 09-14-2004 11:33 AM
blocking MSN using iptables? systemgsr Linux - Networking 16 09-04-2003 11:59 AM
Blocking Kazaa with iptables lorddecker Linux - Security 1 08-21-2003 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration