How to make my own domain name like abc.def? - web

I have seen some domain names like http://nadim.computer/ how could i get a domain name like that. any help?

You can't create your own top level domain. Here is a list where you can choose from.

Related

How to extract domain part from email address column in Python without .com

I have column marked as email in my dataset
and I tried using df['email'].str.split('#').str[1] but it gives me 'gmail.com' and I want Gmail as output. Can anyone help please?
You can try to split that again on "." and then select the domain part
For example:
email = "example#domain.com"
domain_name = email.split('#')[1].split('.')[0] #This will be "domain"
If you want Gmail part, you can split the split that you do. Something like df['email'].str.split('#').str[1].split(".")[0]
IIUC you want to get the first part of the domain?
You can also use a regex:
df['email'].str.extract(r'(?<=#)([^\.]+)')
If you want all the subdomains except the top level domain (abc.def in abc.def.com):
df['email'].str.extract(r'(?<=#)(.+)\.\w+')

How to validate top level domain for validity and existence?

There are so many top level domains these days, like .xxx, .club and so on.
How do I check if some domain's top-level domain is correct and exists?
For example, mydomain.xyz. I can cut off mydomain. and check the rule against xyz. Should I get a full list somewhere? I suppose it's not 100% guaranteed as the list can grow over time?
Or may be I should use some remote API for this?
I found this one http://data.iana.org/TLD/tlds-alpha-by-domain.txt and it seems to be the one that I hope is updated regularly. Is it a good enough source?
Please advise.
If you want to check a given string to see if there is a currently existing TLD with that name, you can send an NS query for the name to the root servers and see if they give you a sensible answer. If they do, the TLD exists. If they do not, it does not exist.
If you want a list of all currently existing TLDs, the URL you give in your question is indeed the correct place to get one. As the first line in the file indicates, it does get updated regularly.

I want to show a webpage which will be visible for specific country only

I want to show a webpage which will be visible in India only and for the rest of the world it should redirect to another page ,can anybody tell me how I can add this functionality using Drupal 7 ?
You need to detect IP of user and redirect based on that. To detect IPs you can use Drupal Modules like GeoIP, SmartIP etc.. All these modules only provide APIs i.e you need to write your logic in modules/themes. Choose one for which you need least maintanence. For geoIp you need to keep updating County List DAT file manually once in 3~4 months, I am not sure about others. Once you choose your module you have to write logic for your scenario, something like this (This will redirect users only from front page i.e www.example.com, if you want you can add this to hook_init() so that its checked in all pages.
$cc = geoip_country_code();
if($cc == "IN"){
drupal_goto(MY_INDIAN_SITE_URL);
}
else{
drupal_goto(REST_OF_WORLD_PAGE);
}
You can use page--front.tpl.php or make use of drupal_is_front_page() in page.tpl.php to write your own logic.

Adding hyphens in domain name registrations

I wanted to register a domain name for myself but as usual could not get exactly the name I wished for.
Ex: 11minutes.com was what I wanted.
But I found a very similar one with a hyphen in between.
Ex:11-minutes.com
Are there any disadvantages to buying this domain ?
One down side is that people looking for the 11-minutes version might type the other variant into their browser address bar and go to the wrong site.
Another is that if the version already registered is a trademark in the same business as you, they could decide you're infringing and have your domain taken away.
It's better to have something distinct in most cases.

Joomla VirtueMart creating wholesale items

I have a shop setup, but want my wholesales to be able to use the shop as well. Is there a way to create items that only the wholesalers can see?
I know you can change the pricing based on the group, but I want wholesalers to see a different set of item.
Can this be done?
Thanks in advance.
a) Could you not place them into different categories for different users
b) use the Special login level to require higher access for these categories?
Or do you want to automate what is visible to whom? In this case a query rewriter based on a system plugin may work. Look at how Joomfish does this.

Resources