Koozali.org: home of the SME Server

Blocking a "Bad" Translation service

Ryan Blankenship

Blocking a "Bad" Translation service
« on: October 06, 2003, 06:31:17 AM »
Someone is making joke of using Pornolize.com to "translate" and view our _school_ website in sexually explicit terms.  Is there a way to block this translation from being used?  Maybe with .htaccess?

TIA
Ryan

Jens Kruuse

Re: Blocking a "Bad" Translation service
« Reply #1 on: October 06, 2003, 01:19:13 PM »
Or you could block access from the pornolize.com server using IP-Tables.

Ryan Blankenship

Re: Blocking a "Bad" Translation service
« Reply #2 on: October 07, 2003, 01:26:53 AM »
How would I do that?

Nathan Fowler

Re: Blocking a "Bad" Translation service
« Reply #3 on: October 07, 2003, 07:37:56 AM »
I believe the rule you would use would be:
iptables -A INPUT -p tcp --dest-addr www.pornolize.com -j DROP

Note, nslookup reveals that pornolize.com and www.pornolize.com use the same IP Addr.

Jens Kruuse

Re: Blocking a "Bad" Translation service
« Reply #4 on: October 07, 2003, 09:57:49 PM »
I have a template-fragment in /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/47BlockSpecificIP
which I use to block a particularly annoying "client". A version for you could be:

# Block specific IPs
/sbin/iptables -I INPUT -s pornolize.com -j DROP

I expect you could try this if Nathans rule doesn't work for you. Always use template-fragments if at all possible. (If I understand the question correctly, it is access *from* pornolize,com which is the problem).

/Jens

Ryan Blankenship

Re: Blocking a "Bad" Translation service
« Reply #5 on: October 08, 2003, 01:50:13 AM »
Thanks!  Now if you try to use it, the Pornolize.com server sends an 500 Internal Server Error--probably a timeout because its connection to our server was dropped?

Jens Kruuse

Re: Blocking a "Bad" Translation service
« Reply #6 on: October 08, 2003, 11:58:02 AM »
Sorry to say this, but pornolize.com can still access your school site and present it in a somewhat skewed way. (I hope!) Which method did you try?

/Jens

Ryan Blankenship

Re: Blocking a "Bad" Translation service
« Reply #7 on: October 08, 2003, 09:04:28 PM »
I used Jens method.  I tried it and I got an Internal Server Error from pornolize.com's server.