dns

Get DNS configuration of a remote host

北慕城南 提交于 2019-12-24 14:14:24
问题 I was wondering how can I through a Python web app, get the DNS configuration of a remote client who's connected to my app. I would like to know how I can tell what DNS server the remote client is using. It would look like something like this : https://www.perfect-privacy.com/dns-leaktest/ 回答1: You can get the same information as from the service you linked, but You will need more than a web app The information may not be entirely accurate The way the service works is by embedding resources

Does changing the Site URL/Domain of a Facebook App affect your users?

痴心易碎 提交于 2019-12-24 13:58:01
问题 Let's say I've got a Facebook app that I use for Authentication of my Users (http://developers.facebook.com/docs/authentication/). My current Website uses the domain abc.com, I've set that domain and a corresponding redirect URL in the facebook app settings. I've got some users on my site, with working logins. Now I need to change my domain to xyz.com. Will this affect the login and authorization status of my users ? I.e. if they visit xyz.com after the relaunch, will they need to grant

Use IP and host with Jsoup

元气小坏坏 提交于 2019-12-24 13:35:04
问题 I would like to access a webpage using ip and host, in order to save DNS lookup times by having stored values for domains. If via sockets, it'd be done by using sockets, transmitting a GET request of the following syntax: Socket s = new Socket([string_ip_address], 80); Then transmitting: Get [file_name] HTTP/1.1\r\n Host: [some_name] But I would like to use Jsoup. The equivalent command to retrieve a page, saw www.google.com, in Jsoup is: Jsoup.connect("http://www.google.com").get(); But the

Redirecting an old SSL domain to a new one on Heroku (w/ Rails 3)

家住魔仙堡 提交于 2019-12-24 13:25:51
问题 I've been googling for the past hour on this but can't quite get it nailed down. Perhaps you guys can assist here! Here's what I'm trying to do: Old site is: old.tld New site is: new.tld A bunch of folks access one particular legacy url on the old site via SSL, i.e.: https://www.old.tld/old_url I've just setup a brand new site on Heroku, running Rails 3, on the new domain. I also have installed Heroku's SSL Endpoint Add-on and am using a new secure subdomain: secure.new.tld I've got a bunch

Is there a bug in java.net.SocketPermission when dealing with cname reverse lookup

淺唱寂寞╮ 提交于 2019-12-24 13:04:58
问题 Consider the following snippet: (in this case OpenJDK 6b24-1.11.5-0ubuntu1~12.10.1, which appears irrelevant since all the JVMs 6&7 both Oracle and OpenJDK have the same behavior) SocketPermission toCheck = new SocketPermission("www.google.ca", "resolve"); SocketPermission checker = new SocketPermission("*.ca:80", "connect"); System.out.println("Result: " + checker.implies(toCheck)); checker = new SocketPermission("*.1e100.net:80", "connect"); System.out.println("Result: " + checker.implies

Site connecting very slowly in Chrome - DNS Issue

喜你入骨 提交于 2019-12-24 12:54:53
问题 I have a site which is hosted in AWS EC2 instance with a ELB URL. The DNS mapping is done. When I try to open the site in Chrome it takes about 1.3 mins to open whereas in Safari it takes about 3 secs. On investigating further I found out that the initial connection is taking 1.3 secs and subsequently it takes 3-4 secs to load the website. Is this a DNS issue? Need help to solve this issue as I am not a network expert. Thanks for your help. Sukrity 来源: https://stackoverflow.com/questions

Azure Custom Domain - awverify not found

自古美人都是妖i 提交于 2019-12-24 12:40:27
问题 A couple of days ago I set up a new site in Azure and modified my DNS records to point to the site. I am unable to add the custom domains through the management tool or the portal. The error I see is "A CNAME record pointing from mysite.com to mysite.azurewebsites.net was not found. Alternative record awverify.mysite.com to awverify.mysite.azurewebsites.net was not found either." (Changed my real domain to mysite as I'd rather not put that here). The worst part is when I visit "mysite.com" it

Dynamically prevent hotlinking images using htaccess for multiple domains

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 11:58:50
问题 Preventing hotlinking using htaccess is well documented. However, I want to prevent hotlinking for multiple domains without adding a rule per domain. My idea is to match the referrer with the hostname, this seems like a good solution to me. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?%{HTTP_HOST}/.*$ [NC] RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L] </IfModule> Is this is a proper and safe solution to prevent

htaccess rewrite only main domain to subfolder

匆匆过客 提交于 2019-12-24 11:51:47
问题 I'm using a cPanel account to host multiple sites. To have a clean public_html, I use .htaccess to redirect the main domain into one of the subfolders. So when user types in www.example.com , it will be rewritten into www.example.com/mainsite/ but still showing www.example.com in the URL. But when using the codes below, every domain (including sub domains) will get redirected to that folder: RewriteCond %{REQUEST_URI} !^/example RewriteRule ^(.*)$ /mainsite/$1 [NC,L] How can I target only www

How can you make a php script only answer requests made from the same server?

孤者浪人 提交于 2019-12-24 10:56:56
问题 How can I get my PHP script to only answer requests if the requesting script is on the same domain? ** Edit: The PHP file is being accessed by an ajax request and is proxy, so I don't want others directly requesting it to come up, is this possible? 回答1: You could use $_SERVER['REMOTE_ADDR'] to compare the IP of the user requesting the page. Or you could simply make it a command line script that (obviously) requires you to run it from the command line. edit: You want to prevent people from