Telnet to wifi modem/router to block website (modify /etc/hosts)

Status
Not open for further replies.

raksrules

Oracle
I need to block a URL on modem / router level (not on PC or laptop) so that none of the devices connected to that modem can access that particular website. I tried to do a

telnet 192.168.1.1

but i get error as follows..

C:\Documents and Settings\raksrules>telnet 192.168.1.1

Connecting To 192.168.1.1...Could not open connection to the host, on port 23: Connect failed


I wanted to modify the hosts file and block the website.

My modem is a also a wifi router (2 in 1, verizon FiOS, westell 9100).

Can anyone tell me what am i doing wrong or why this is not working ?
 
Is there a menu for access restriction or parental control in the router ?

Telnet only works when its port is opened
 
Is there a menu for access restriction or parental control in the router ?

Telnet only works when its port is opened

Yes parental control is there and i did try and it worked for a sample website which became inaccessible using browser on iPhone and laptop. But i have URL which i know is accessed internally by an app in iphone and i want to block that.

But someone told me that if i successfully edit the hosts file then i can block it for sure.

Any workaround ?
 
What do you mean by internal URL ? Anything added to parental control would be blocked
 
The router will mostly have a URL filtering option, if yes, just enter the URL. Parental control will work for internal URLs too. Not all routers have telnet enabled and I don't think editing the /etc/hosts file in the router will block it anyway.

I just edited the /etc/hosts file in my DDWRT router and changed the IP to 127.0.0.1 but even then it resolved to the correct IP. If its done on the individual PC, it will work, but in a router it won't, maybe due to the way it is configured.
 
It seems your router lacks telnet functionality as correctly pointed out by varkey. BTW may i know what you are trying to achieve by telnetting the gateway IP?. Is it anything to do with blocking a URL (which is usually done through the GUI of the router)
 
The router will mostly have a URL filtering option, if yes, just enter the URL. Parental control will work for internal URLs too. Not all routers have telnet enabled and I don't think editing the /etc/hosts file in the router will block it anyway.


I just edited the /etc/hosts file in my DDWRT router and changed the IP to 127.0.0.1 but even then it resolved to the correct IP. If its done on the individual PC, it will work, but in a router it won't, maybe due to the way it is configured.

configuring hosts on machines works

on the router, it should technically work, however your dns should point to 192.168.1.1 else it will resolve anyway!

i use a script to block blacklist sites with ads at the router level
 
^ Yes, I did edit the /etc/hosts file on the router and made sure I was using the router's IP as the DNS server. Even then, it did not work as expected.
 
My verizon router has telnet disabled by verizon and when i contacted them to enable it, they told me it will be 39.99 $ :@
Searched the internet and found a way to do it myself, loading of config file was to be done.
So i did enable the telnet on my router but still was not able to edit the /etc/hosts. Seems that is disabled or something.
As of now i don't really think i have need to make the changes.
 
Status
Not open for further replies.