objective c - Disable DNS on UIWebView -


how disable dns filtering in uiwebview?? have website has viewed on particular wi-fi , has dns filtering want bypass. thanx, seboh.

this doesn't have uiwebview, more type of dns filtering network has in place. there tons of ways dns being filtered.

here few possible methods off of top of head:

1. "dumb filtering"

in case, ios automatically requests dns server used gateway. gateway can provide dns server filters requests. extremely easy bypass. going wifi settings , setting dns server manually, phone no longer ask gateway dns server , instead use whichever server specify. (google 8.8.8.8)

   

2. "smart filtering"

this must little creative. in smart filtering, gateway analyzes dns packets they're sent, , if detects request blocked website, doesn't let packet through. can difficult bypass. have somehow obtain ip address registered domain name using different protocol, http or custom design. you'd need employ own server in method.

say user tries go twitter.com. in delegate method (or wherever load pages from), send http post request server unfiltered dns (assuming gateway doesn't filter your server's domain), reply corresponding ip address twitter.com. then, navigate uiwebview directly ip address. so:

nsstring *api_response = [yourapi requestipfromserver:@"http://yourserver.com/api" withdomain:@"twitter.com"]; nsurlrequest *request = [nsurlrequest requestwithurl:[nsurl urlwithstring:api_response]]; [mywebview loadrequest:request]; 

hopefully helps, kind of vague question.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -