Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Redirect if it comes from email

Redirect if it comes from email

Hi,
I am using Metamod PRO ( LOVE IT!!!)
What is the code to redirect all visitors coming from a link selected in email like gmail and yahoo?

I see you have receipt for http://www.metamodpro.com/metamod/recip … eferer-url
   and played with it but was not  able to make it work. May be because it is outdated code.

I want to redirect all coming from emails to my page   mydomain.com/new
and the refferer in that case i believe :
google.com
gmail.com
https://mail.google.com/
http://mail.google.com/

and the same for yahoo.com 

Please help with the code if that is possible.
Looking forward.

alexmartin
Junior Modder
ranks
useravatar
Offline
31 Posts
Administrator has disabled public posting

Re: Redirect if it comes from email

Hi Alex,

unfortunately the world got more complicated recently when Google changed the way it sends people away from its sites. It's also to do with a rule of the HTTP protocol that referrer data is not sent when you go from a n HTTPS (secure) site to HTTP site (non-secured).

So unfortunately the link from Google is not going to show up as a referrer at all on your site unless you have HTTPS set up on your site.

Major bummer, I hate that.

Sorry about that,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Redirect if it comes from email

Sure, I have HTPPS on my site, that is not a problem.
Please help.
Thank you.

alexmartin
Junior Modder
ranks
useravatar
Offline
31 Posts
Administrator has disabled public posting

Re: Redirect if it comes from email

I've just done some more testing on this.

Here's a page that's helpful for testing:

https://referer.rustybrick.com/

It is a secure page that prints out the refer(r)er string for you, so you can see the result when linking in from an e-mail in gmail.com or from a search result on Google/Bing/Yahoo etc.

The results:
1 - you can get a referer string when going from Google search results: it's https://www.google.com/ but never with any other search queries etc, just exactly what I wrote there.
2 - gmail uses some clever Javascript to get rid of the referer completely when following a link in an e-mail. Zilch. Nada. Even when it's https to https. If the browser has JS turned off it's possible to get the complete referer string, but then the rest of gmail won't work (and you can't ask your site visitors to do this)
3 - I tried the gmail client on my Android. Same thing, no referer given to the landing page.
4 - I tried IE as well as Safari, same thing.

Thus it seems that there's no way to detect when people have linked from gmail. I'm really sorry about that - it would be amazing to be able to do that.

The only work-around I can see is that if the link is in e-mail, then you presumably have some control over it if it came from an e-mail that you sent. So, you could craft the link in the e-mail such that it has a code in it that you could detect, such as http://domain.com/?from=gmail then detect JRequest::get("from") == "gmail" to trigger MetaMod into doing something.

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Redirect if it comes from email

You are always awesome!  I really appreciate how you taking care of me in support.
Here is the real reason why and what it is all about:

I want to prevent my affiliates to use their exact "naked" (as is) referral links promoting via e-mail. It is a big deal now. There are many websites with a good reputation are marked as a spam by internet service providers because their users use direct links in the e-mails with mass / balk sending. I want to tell my users: don't even waste your time promoting my website with your "naked" affiliate link in the email body.  Use tracking or redirect with domain or a landing page.   Direct "naked" links can be used on Banners, Blog posts, etc - but not with e-mails.

This is because I want to protect my domain name for a positive reputation with ISPs.

So, I am looking for a solution to redirect all clicks from emails to a certain location.

here is how direct "naked link may look:
http://mydomain.com/#a_aid=username

where username depend on the affiliate username.

May be there are some other possibilities?  What you think?
Thank you

alexmartin
Junior Modder
ranks
useravatar
Offline
31 Posts
Administrator has disabled public posting

Re: Redirect if it comes from email

Hi Alex,

you know, I just can't think of a way of detecting when a link comes through from an e-mail. You don't have many clues to work with: the referrer would be the best one if it works, which it does not in the case of gmail.

1 - try out some alternative e-mail providers, e.g. Office365 / Outlook.com, hotmail, ymail, rocketmail, AOL, Yahoo mail etc. Make a link to the web page I mentioned above and see what referrer you get. If you find that the majority do leave a referrer, then by all means detect that one and redirect it - something is better than nothing, as a deterrent.

2 - any chance that detecting a null referrer could be treated the same as one from e-mail? What difference is it going to make? You could set it up so that:

- bots are not redirected
- people clicking on Google search results (google in the referrer) or Bing/Yahoo/Dogpile/other search engines are not redirected
- people on the same web site (internal linking) or who have a session variable are not redirected
- all null referrers are redirected (e.g. from bookmarks, links from mail clients, or people who type it in directly)
- selected other referrers are redirected (any mail clients you can identify)
- all other referrers are not redirected - presumably they are genuine links from other web sites.

Now this is going to great lengths to try to second-guess things, and truthfully it's a bit dodgy in the sense that Google does not like you showing different content to different IP addresses etc.
It also has the problem that someone might type in the address fresh for the first time, get redirected, then make a link from their own web site to the "redirected" version, thus reducing the effectiveness of incoming links. So it's not perfect.

It occurs to me though that if these are very special links i.e. not general links to your domain, but only ones to where the affiliate is mentioned, that you could set up the rules for ONLY those links, and there's less potential for trouble with Google.

i.e. set up all the rules I mentioned above, but restrict the redirections to occur only when the exact affiliate links are used. All other site links are untouched.

What you are trying to do here is simply to discourage bad behaviour from marketers. Google won't actually see those redirections, so if these other links exist and Google finds them, then Google will follow them.

What I'm saying is that putting these redirections into place will not, as far as I can work out, stop Google penalising you (if what you are saying is correct). Google will not actually try the link. Or if it does, your site will not be able to tell the difference between the normal googlebot accessing it, or Google "checking" for bad behaviour. It will just see that there's a spammy link from e-mail and count it against you. So the only tool you have is to try to discourage people from making the links in the first place. Good luck with that! I'm not sure that my suggestions really help that much, but may help a little.

Out of interest, do you have any references/links to info about Google penalising links found in e-mails?
The reason I ask is that apart from gmail which Google owns, Google is not going to be able to crawl other e-mails (e.g. your desktop or mobile email app) so how is it going to detect and penalise mass e-mails with a link to a web site? Based on gmail alone?

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Redirect if it comes from email

It is not the Google , it is Internet Service Providers that delivers e-mails . When they see the same content sent with the same domain inside - they mark that email as a spam and add domain promoted inside as bad domain reputation.
This happens recently with JvZoo.com (affiliate system)  ClickMagic.com tracking program (their special tracking link  is slightly different). Facebook also  banned these domain for promotions. They probably know domain reputation data.

It took these companies a lot of energy and manual crowd support to "clean" their domains reputation and prove many Internet Providers ( SMTP servers) that they are clean and they are affiliate programs used by many to promote variety of products.

So now ClickMagic explain every member why they should avoid to use direct link. That is hard, very hard - members don't remember and do not keep attention.

So it is a pain in the ass. Huge problem. Marketers are in pain.

alexmartin
Junior Modder
ranks
useravatar
Offline
31 Posts
Administrator has disabled public posting

Re: Redirect if it comes from email

Thanks for the explanation - it's a world that I don't know very much about. I am more familiar with the Google / SEO side of it than the marketing side.

At the end of the day I'm still of the opinion that whatever you try to do with redirects is only in order to punish people who break the rules, and to try to persuade them not to do it. I am still convinced the ISPs are not going to crawl the links, mostly. If they see a link to your domain and match that with other links in a mass spam, then you are hosed. Whether or not the links redirect to something slightly different is unlikely to make any difference, in my opinion.

In other words, if people send out a mass email mentioning your web site in a way that is considered spammy, I don't think that changing the behaviour of your site when people (or bots etc) follow those links is going to help you.

Or am I missing something?

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Redirect if it comes from email

It is nothing to do with crawling or search engine bots.

Internet Service Providers - let say AT&T   or SMTP  watchdogs
http://www.spamhaus.org/faq/section/ISP … Issues#119
https://senderscore.org/
or see Barracuda - one of the big one - see this website:
http://barracudacentral.org/data/spam 

- they see how many emails sent with the same content and with the same url - domain  promoted inside of that email. Large amount of the similar emails with the same domain promoted - raise red flag. It is very hard to clean your name on Barracuda.org. IF you domain is blacklisted on Barracuda -you server emails as notification for your members  wil not be inboxed. They will be delivered as a spam. Yes, it is the case even if you never spaming.

The SEO side of this is simple - if you purchased domain that is blacklisted on the Barracuda - good luck! Buy another domain!     

Same with Aweber.com autoresponder. Aweber prohibit  direct links for any offers promoted via large CPA company CashNetwork: http://cashnetwork.com/  , for example. If you send emails via Aweber with CashNetwork link inside - it leads your mailer account on Aweber.com  going to be closed. Period.

To clean your domain you start here:
http://www.emailreg.org/index.cgi

alexmartin
Junior Modder
ranks
useravatar
Offline
31 Posts
Administrator has disabled public posting

Re: Redirect if it comes from email

Thanks for the info Alex.

Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10796
Newest User:
mokao3
Members Online:
0
Guests Online:
155

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked