How to make Country - Specific Web Site (and contents)? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Now I am developing a small website about Cricket News in php. My plan is to present every day cricket news as posts and my goal is to show viewers their home country's news top most according to their country..! Currently I have ordered only a .com domain name and planning to order some country coded domains (like .lk, .in, .au, .gb, .sa etc) according to your answers. So my question is this.
I have seen a lot of major websites have their own bunch of cc domains and sometimes I cannot go their general .com site even I typed it on the browser's address bar. (I am in Sri Lanka and some websites only show .lk site even I googled or typed their .com names on my address bar..!) I like to include this technique to my website also, but I don't know how. So please help my following questions.
How do I detect visitor's CORRECT COUNTRY?
Do I need any third-party service or add-ons and are there expensive?
How do I change web content according to visitor's country?
Should I buy all cc domain names or can I use following technique?
https://www.sample.com/in/index.php
https://www.sample.com/sa/index.php
Finally, If I can use mentioned technique, how I do that?

You need user IP Address and IP 2 Location API. Try the following example with complete solution to detect User's country.
Try
$userip = $_SERVER["HTTP_CLIENT_IP"];
$ip_data = json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=".$userip));
echo $ip_data->geoplugin_countryCode;
Output
US

Related

How to Add E-mail Addresses in .php code [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am new to .php coding so I have tried to write this as code. I would like to make just the e-mail addresses active but am not sure how to do this.
The Orpington Badminton Club Committee currently consists of 4 members who look after the day to day functioning of the club who are.
[Removed Personal Details]
Thanks
You would just generate the following html:
Someone - Club Captain
There is a reason that people use form submissions though to generate emails.
You are exposing your users emails to any program crawling the site. This is guaranteed to get your users email address on an incredibly large amount of spam mail list.
The html mail to links you find on websites are dependent on the user visiting the site having a default mail action selected in their browser. If they do not then they can click that link all day long and it will do nothing.

The ability to fight with Ad-Blocker [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I had searched by google and this forum-search and I didnt get any about this so I propose a new topic: WordPress with the ability to fight with Ad-Blocker.
I am not an IT guy (subsea engineer) but I am having website with about 100 - 200 unique visitor/day now (according to adsense) as hobby (1%-4% using ad-blocker - I am lucky to have these ~97% my visitors).
I just learn that ad-block users are about 300 mil and it is a huge problem to big publisher (they earn money from ads). Ad-blocker using bandwith, upload data to their server and some (one of them - I expect more of them) sell the data as anons.
In accordance to the above idea,
I have a question as a-non IT guys, is there a way to make WordPress to tackle ad-blocker (auto)?
It may be a way to disarm ad-blocker. My website is like my home/house. You/Visitors can visit but please consider the owner.
No from what I can tell, it keeps a list of servers which are used to serve advertisements. Whenever you visit any website, the web browser has to fetch the components from the various servers. Adblock simply blocks the connections to any item on its list of ad servers, thus blocking all or most ads. The list of servers has to be updated ever so often which it does in the backend.

Find out website hosting location [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Am a member of IT team. Each group of people in my company have their own webpage. somebody is using google sites. 2 websites were not found from this morning. I need to find out one website hosting location. Website URL is something like https://www.mycompanywebsite/groupweb. I checked all the codes in company website (It's developed using PHP MySql), but these 2 groups names or files not found in the codes. Any guess or comments from anybody??
Do a whois lookup. I usually just go to http://who.is and do a search on the URL. The whois lookup will give you a list of information about that domain. Often looking at the nameservers will help. You might need to search the name servers on google (or other search engine) to find out who owns them.

How to test geo targeting for website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am implementing GeoTargeting in my website to show different content based on whether traffic is from US or NON US.
I have every thing set up the way it should be. Now I want to test and see if its working for NON US traffic.
How can I do that. I would like to also test features of the website when I am testing for NON US traffic.
Two professional solutions:
Geosurf
GeoEdge
Both offer a toolbar as plugins for some browsers where you can "simulate" (aka proxy).
You need some sort of geolocation database to test against. Here's one: http://dev.maxmind.com/geoip/legacy/geolite/
From there, it wouldn't be too hard to figure out where users are coming from... though it will never be 100% accurate.
There's also the HTML5 geolocation: http://html5demos.com/geo - but users have to explicitly allow location reporting... and it doesn't work all the time, either, even if they accept.

How to have google links and face? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've been noticing these links, faces and extra info on certain Google searches, and I would like to know how I could implement them to my site as well. I don't really know how that is even called, so sorry if I've put the wrong tags for this.
Also a side question: the photos look professional, but I have no camera, so instead of a photo, I would put a logo - would that be overstepping?
Here is the Google article on how to add your face to website search results: Author information in search results
You can add the following code:
Google
Example:
Google
Alternatively, you can also do the following:
Check that you have a email address (for example, levy#wired.com) on the same domain as your content (wired.com).
Make sure that each article or post you publish on that domain has a clear byline identifying you as the author (for example, "By Steven Levy" or "Author: Steven Levy").
Visit the Authorship page and submit your email address to Google. No matter how many articles or posts you publish on this domain, you only need to do this process once. Your email will appear in the Contributor to section of your Google+ profile. If you want to keep your email private, change the visibility of your link.
To see what author data Google can extract from your page, use the rich snippets testing tool.

Categories