Page 1 of 2

Block Link in linux

Posted: 2017/12/04 15:35:43
by mekawy
Hello .
How can i block any link on linux?
I wanna to block some links or codes on my server
Can?

Re: Block Link in linux

Posted: 2017/12/04 15:58:25
by avij
This is fairly easy to do with squid, a HTTP proxy. I use this myself at home to block the most annoying ads.

squid.conf:

Code: Select all

acl bad_url dstdomain "/etc/squid/bad-sites.acl"
http_access deny bad_url
bad-sites.acl:

Code: Select all

.example.com
net1.example.com
www.someblockedsite.com
Automagically redirecting the traffic to the proxy (see "transparent proxy" from your favourite search engine) might need some clever firewall rules, though. This is not a problem for myself, because I can simply point the single browser I use to the proxy.

Re: Block Link in linux

Posted: 2017/12/04 17:17:12
by mekawy
I want to block any request or access from other links , [ External Links ]

Block local host

Posted: 2017/12/04 17:37:03
by mekawy
Hello ..
i have 123flashchat server in linux centos , for hosting files like SWF and HTML , and others can access this files from local host directly by typing my host IP in Parameters
for example my file is : xxx.xxx.xxx.xxx.://123flashchat.swf
and they access by :
127.0.0.1:123flashchat..swf?init_host=xxx.xxx.xxx. <-- my server IP

I wanna to close 127.0.0.1 , Can?

Re: Block Link in linux

Posted: 2017/12/04 18:47:32
by avij
Looks like there's a ban option available in 123 FlashChat. Perhaps you should use that to block 127.0.0.1, if that's what you want.

Re: Block Link in linux

Posted: 2017/12/04 18:59:21
by mekawy
123flashchat closed no more support there, that's because i am here ..
I needed your help , how can i block local host 127.0.0.1
If you know how can i solve it please let me know :)

Re: Block Link in linux

Posted: 2017/12/04 21:21:41
by mekawy
Help please :)

Re: Block Link in linux

Posted: 2017/12/05 21:23:23
by mekawy
Guys please help me

Re: Block Link in linux

Posted: 2017/12/06 06:04:29
by Whoever
Does this go through a web server such as Apache httpd? If so, you can block these in your web server configuration.

Re: Block Link in linux

Posted: 2017/12/06 22:52:40
by mekawy
Explain :(