Is there a better way to control outbound links than what I am doing? Right now, I link to a php file on my own site with a number in it. But the problem is that one of those other website gets malware and Google now gives me a warning that my site is malware. If they caught a bad third party website before I did, they used to understand it and warn I was linking out to it, but now they seem to be less intelligent and tag me as malware. Even though it isn't my site. I am just linking out to it.
Why am I doing it this way? Because I link out to so many websites and the links are also inside offline data like a mobile app installed on people's phone, I don't like having the plain direct and rigid link sitting out there. They change, they might go bad, etc. I can just change my own file in one place that redirects them. I would be fine with a plain link if it wasn't for the offline data aspect that people are using. But I need to look at other options if a link is not properly understood any more and I get a tag as malware.
My outbound link would be like mydomain. com / file php?goto=10647
the php file has code like this and includes all the numbers and sends it to a url.
$links = array(
"10647" => "http://www.otherdomain.com/","10648" => "http://www.otherdomain.com","10649"
There must be a better way than this or is there a way to redirect a link and not seem like the page is mine?