Counting High Quality visitor for ads [closed] - javascript

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 1 year ago.
Improve this question
I Started to make a website that provide a shortlink with ads and then pay the publisher , but for advertiser they only want real people to see their persuasive ads , so my problem is how to know the viewer is real people and high quality enough to make the counter count them so i can give reward to the publisher ,
sorry if you don't understand my english is bad
THANKYOU VERY MUCH

There is some small REST API doing great IP verification returning a score for the IP you send, example :
$ip = $_SERVER['REMOTE_ADDR'] ; // your user IP
$checkIp = file_get_contents('http://check.getipintel.net/check.php?ip='.$ip.'&contact=mail#example.com') ;
// don't forget to put a real e-mail
if ($checkIp <=0.95) {
// this user is not a bot !
// do something here
}
Then you can save the result in a session or a cookie so you don't have to call API on every page. I use to work with http://getipintel.net/ but based on the same idea you can use google invisible captcha.

Related

Monitor webpage changes [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 11 months ago.
Improve this question
Suppose there is a website on internet which shows Indian share market price. And price of share is changing every second.
This site provides no api support
How can i continuously track this price and update to user when price goes above a specified limit.
I am beginner please help me how to start and where to start
All the process should be on server not from my phone/pc
I am beginner please help me how to start.
Maybe you can setup a web scrapper that fetches the page on a periodical basis with the help of a background job, you may begin with PHP and Cron.

How can I register how many times a 'user' visits a 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 2 years ago.
Improve this question
I'd like parts of my website to be non-visible to the user if the user has accessed the website more than a certain number of times. The NY Times website has similar functionality.
I use react & firebase.
I did think about getting a user's IP address but my understanding is that measures geography, not necessarily a device.
P.S. If this question's unsuitable for SO, would you mind suggesting another forum, if you know of one, where it'd be more suitable?
You can use js and the local storage of the client browser to do that the easy way (but it can be easily cheated on by cleaning history).
Just copy/past that in an .html file and it will work if you refresh more then 4 times :
<script>
var dontDisplayPage = false;
if (localStorage.getItem('numberViews') === null){
localStorage.setItem('numberViews', 1);
} else {
localStorage.setItem('numberViews', parseInt(localStorage.getItem('numberViews'), 10) + 1);
}
if(parseInt(localStorage.getItem('numberViews'), 10)>4){
dontDisplayPage = true;
}
if(dontDisplayPage) alert('too many views !');
</script>
Then looking at dontDisplayPage you know if you must display the page, here dontDisplayPage is true if page has been seen more 4 times.
Based on that you can hide the div containing the article for exemple and display a message.

Need to send message to mobile numbers international numbers and also national numbers using php [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 7 years ago.
Improve this question
Need help , I want to know and implement this problem.
My problem is, In textfield i give greater than or equal to 10 digit mobile number(International Numbers or National Numbers) . when i click submit button need to send some message to that number..
Please give the sample code with brief example using php.
You can't send SMS directly from PHP. You will have to make use of an SMS gateway API. Nexmo is a good service.

Getting Age of Visitor on 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 9 years ago.
Improve this question
I need to write some code that gets the gender and age of a visitor on my website without asking for permission to store them, just like Google Analytics.
I have managed figure out a way of getting the users gender using by using the Facebook Graph API (gender does not require user permission). So now I am stuck on a way I could get the visitors age as I cannot use Facebook Graph API for this as it requires permission from the user to get.
Any ideas? Thanks for reading.
Here is a function that is just as accurate as Facebook but requires no user permissions.
function get_age() {
return Math.floor(Math.random() * (100 - 13) + 13);
}
If you want more accuracy, you can use multiple random numbers to skew the data into a more realistic distribution. See the jsfiddle I put together: http://jsfiddle.net/D7sj6/

How to make an automatic country finder [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 9 years ago.
Improve this question
I am making a registration page on my website.
I don't want my users to type their own country. I am wondering how to make a PHP/JS/jQuery script that will work with this:
<input type="hidden" name="country" value="!!COUNTRY CODE HERE!!">
If you want to get the users country, you're going to need to do it with (qualified) guess using their IP address - see this question and answer for an easy PHP-script for doing so.
If this is for a user registration page and the users country is important to get right, though, I would recommend a dropdown-menu where the users can choose the country for themselves instead. Guessing which country a user is from based on their IP isn't guaranteed to be correct every time. Some people might be using static IP addresses or VPNs or some proxy of sorts, which would give you a wrong result.

Categories