Remove unwanted email address from URL - php

I'm running a site that has google adsense advertisements on it, and they recently notified me that I'm passing PII (Personally Identifiable Information) to them. This came as a surprise, since I intentionally designed the site to avoid doing that and have come to find out that some users are not following the directions on the website for referring traffic and are inputting their EMAIL ADDRESSES instead of their referral numbers.
For example, they should be using http://www.scratch4satoshis.com/?r=2127
but instead are using http://www.scratch4satoshis.com/?r=redacted#sample.com and so, the traffic they send there are shown google ads and if they click them, pass that PII along to google and now they're threatening to close my adsense account.
The site is written in PHP; I'm wondering if there is a way to modify the information being passed to Google Adsense?

Try to filter get parameter as integer values:
$r = intval($_GET['r']);

Related

Preventing Duplicate Form Submissions using 2FA

My problem is this:
I have a survey that is taken by people that they're paid for. I want to avoid the same person submitting the form multiple times. It is a web application.
What I have tried:
I have tried recognizing the IP address from which they try to submit the survey but it hasn't worked.(They could just change devices and so, IP changes) I could try 2FA (where I authenticate using SMS/Voice to phone numbers) but free phone services like Google Voice/Twilio will render that useless. Using a SHA/MD5 hash on a combined key such as phone number and email address still faces the same multiple emails/phone numbers problem. Uber has recently covered up its tracks and devised a way (or a partnership) to recognize Google Voice Numbers. I have gone through the Google Voice API and haven't found a way to find the actual phone number linked to the Voice number.
Is there any full-proof way of doing this?
PS: I am NOT talking about multiple form submissions on a form (say a ecommerce website) which causes multiple charges to a credit card. Please do NOT suggest CAPTCHA.

Is it possible to advertise on local network via Adsense?

Recently I have developed an app on php, which will be running in my workplace local network. The traffic on the Sever(hosted externally) is very large. But the problem is that, since it has to run within local network, the same public IP will be allocated to every user within the network.
Map of the network
Server (Public IP eg. 11.11.11.11) -> Local network users (eg 198.162.1.1).
My application server is has been hosted externally.
Will I be able to run advertisements(adsense) and get paid through it. As the users will always have same public IP.
Note: I am much more concerned about adsense(by google).
I would also like to know the best way to earn through a social networking site other then addsense.
I request you to answer descriptively.Feel free to edit this question for better understanding.Thanks for reading.
Yes, because in your case even google.com will be browsed from local network and so it will also have traffic. Now just don't ask your friends to click on adds in your website.
First, here’s a very brief outline of exactly how AdSense works:
You sign up for AdSense with Google, and, if you are accepted, Google will start placing ads on your web pages automatically.
If someone on your site sees an ad and clicks on it they leave your site.
Google charges the advertiser for the click and shares this money with you. This type of advertising is called Pay Per Click advertising, usually abbreviated to PPC.
The Ads you get on your web pages are usually relevant to your visitor.
With a planned $90 million settlement, Google could soon dispense with a class-action lawsuit involving so-called click fraud.
But while that may be good for Google, it doesn't mean the problem of bogus clicks on online ads--which advertisers have to pay for--is going to disappear anytime soon. A lack of clear standards for determining what is a fraudulent click, or some sort of third-party clearinghouse to monitor the situation, means some advertisers believe they can't do much more than head to the courts when they think there's a problem.
Certainly, Google and Yahoo, which run the two largest pay-per-click advertising networks, say they're addressing the problem. But some click auditing companies still claim that between 20 percent and 35 percent of clicks on Net advertisements are fraudulent.
Unfortunately, there's no easy answer. Some experts say the solution is to have an independent auditor that would use data from the search engines and advertisers to determine in a neutral environment whether clicks are fraudulent.
I repeat, in your case users will even browse google.com or other site, which enables them to know the network type that you have. But make don't click on your own adds which violates their TOS. All the best.
i think it is not possible to run in local network because i should hit the Google adsense server so that it increases your earnings. you can let your Google adsense Script run it doesn't consume more bandwidth.
I'm going to say no.
For a better, more descriptive answer, ask Adsense directly
Possible related questions
Intranet Ads? Same IP, multiple hits
How google adsense detects that the clicks are made from same computer ? Do they check ip addresses ?
Is it legal to add google adsense acount to Local LAN website?
Edit for 1st comment
would you mind giving some conclusion explaining briefly. Can you also give some good alternative to google adsense for a social networking site. I appreciate for help
As all clickouts will be on the same IP "As the users will always have same public IP.", Google will think this is "clickfraud", and you're falsifying authentic clickouts - which you're not, but this is what it will seem like, on Google's end.
Google will first flag your account, and then (most likely, after investigating) close your Adsense account.
Alternatives to Adsense would be;
Infolinks
Kontera
Amazon Associates
BuySellAds
Text Link Ads
Clicksor
Apparently a good choice
Adversal
I've not used any of these personally, and I fetched this list from stream-seo.com

Can I add google analytic to an email (both html / text version)?

I am wondering whether i can add google analytic to an email.
I want to check my click rate , open rate of my sent mail. I have done some research on this and I learnt that there is a track code should be useful.
So,
Since now i am sending an html version email, is it possible to add the code into the mail?
Also,
If i want to see the result of it , is it possible i do not need to login to the google page, but connect to their server and retrieve the result and show them on my php page?
Thank you
I would say NO on this question. You could of course add the Google Analytics script-snippet to your HTML email, but I believe most e-mail clients will block the JavaScript for security reasons. Thus leaving you with inaccurate data, at best.
In your case, if you don't want to send your mails through MailChimp or some other third party service that does the tracking for you (they track both openings and clicks), I would implement my own "simple" tracking system. Each link in the email re-directs through a page that you are in control of, where you track the click and then redirect the user to the appropriate address.
Update
About getting data from your Google Analytics account, I believe you can use the Analytics Reporting API. Haven't tried it myself, but it sounds like what you are needing.
Yes , when you are sending the HTML code to the client , enclose an analytics snippet in the FOOTER of your page. That should do it. However you cannot modify the code.
You can use Google Analytics tracking code, but you will see the "visits" only.
"Visits" => When a user opens an email of you (and of course to be connected to internet)
I think this code will not work inside Outlook.
To see the results, you need to login into your Google Analytics account.
PS: Be sure to setup a valid analytics tracking code.
You can only track link-clicks with Google Analytics if your target site has the Analytics Code in it:
You can read about it here:
http://analytics.blogspot.com/2009/03/tips-for-tracking-email-marketing.html
Yes it is possible to use google analytic's to track open rates.
If you have a pure text version of a email no it is not possible to track it as it need a call to a image so it is only possible using a html version. No you do not try and embed the standard javascript for the tracking you make a direct call to the tracking gif.
There was a free service that did do this
http://web.archive.org/web/20100828084217/http://email-tracking-with-google-analytics.com/index.php

Google adsense reference

My client has a Google Adsense account and one ad-campaign with several ads under it.
The client needs to identify the incoming users who come through clicking each ad.
The client uses Drupal PHP site.
Is there a possibility to track incoming users who come through Google ads?
Use Google Analytics. From the Features page:
Integrated with AdWords and AdSense
Optimize your AdWords performance with post-click data on your keywords, search queries, match type and more. AdSense reports show publishers which site content generates the most revenue.
You can add arguments to the urls used in the adds:
http://example.com
changed to
http://example.com?google=ad123
You can then in your Drupal check for the presence of the google argument in the $_REQUEST variable and act accordingly. This should be done in hook_boot.
http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html
You may use events, and you may add custom parameters to them, but they didn't work for me on the first shot and i gave up. If you figure out how to use them please post a story on how you did that:)

How can I get a phone number customers can sms to that posts the information to my website?

i need an sms service that can gives me a phone number and then my customers can send me sms to that number. then posts the sms information to my website like http://xx.com/newsms.php?body=hey
Thanks
Twilio recently released a SMS API. With Twilio you can:
Get a unique phone number (not a keyword at a shared short code).
Easily connect it via a HTTP POST
It's ridiculously simple. Check out the API.
Try www.textmarks.com - they got a PHP API as well.
If the content can be public or semi-public you might consider using Twitter, which allows various ways of posting via SMS. Their API lets you do pretty much whatever you want with the resulting feed.
An upside of this could mean extra exposure for your site, depending on how you implement it. This is especially true if any of your customers happen to be heavy Twitter users. Also, people would be not be limited to SMS, but could post via web or twitter apps.

Categories