Removing Amazon links

Discussion in 'Amazon' started by Fred Simmons, Jun 30, 2011.

  1. #1
    I live in California, so Amazon just sent me a rather brusque email telling me that they were kicking me out (along with every other affiliate in California)!

    So, I went to HomeSite html editor to remove the Amazon affiliate links from my site (if they're not going to pay me, I'm not going to keep sending them customers), but then I realized two things:

    One is that I have literally hundreds, if not thousands of Amazon links on my site.

    The other is that each link is unique, since most of them are based on search results using a keyword.​

    So, using a universal find & replace isn't going to be easy in this instance.

    Granted, I could use it to just alter part of the common URL, so the links no longer worked properly. But that would leave my visitors clicking on dead links that produced an error page.

    Any suggestions about how to get rid of the links (without deleting each one by hand) are welcome.

    The basic format for most of my links looks like this:

    <A HREF="http://www.amazon.com/gp/search?ie=UTF8&tag=MyOldTag&index=blended&linkCode=ur2&camp=1789&creative=9325&keywords=whatever" target="out">​

    The keyword(s) of course ("whatever" in the example) is different in each link.

    Worse, many of them are text links, meaning there is different text between the opening of the tag and the </a> closing tag.

    Any idea how to quickly get rid of them?


    Thanks.
     
    Fred Simmons, Jun 30, 2011 IP
  2. kjhatzi

    kjhatzi Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm in the same boat . . . hundreds of individually placed book links placed on hundreds of pages. Are you planning on replacing them with something else, or do you just want to get rid of them?
     
    kjhatzi, Jun 30, 2011 IP
  3. Fred Simmons

    Fred Simmons Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'd like to eventually replace them with some other affiliate, but at the moment, I just need to stop them from sending traffic to Amazon, without giving my visitors dead links.
     
    Fred Simmons, Jun 30, 2011 IP
  4. Tmnoonan

    Tmnoonan Peon

    Messages:
    594
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Move out of this hell-hole of a state we call CA. That's what I'm doing.
     
    Tmnoonan, Jun 30, 2011 IP
  5. kjbweb

    kjbweb Well-Known Member

    Messages:
    223
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    105
    #5
    --------------------
     
    Last edited: Jul 1, 2011
    kjbweb, Jul 1, 2011 IP
  6. freshdevelopment

    freshdevelopment Notable Member

    Messages:
    1,303
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    240
    #6
    You can use a regex to remove or replace links. So in theory your regex would match on <a href="http://www.amazon.com... and replace the entire link. I suggest finding a way to replace the link with a comment so you can then go in and do a replace later with your new chosen affiliate.
     
    freshdevelopment, Jul 3, 2011 IP
  7. bluearrow

    bluearrow Well-Known Member

    Messages:
    1,339
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #7
    So this Amazon problem has come to CA too. That sux. You need fine a good search and replace tool. Dreamweaver has one inbuilt.
     
    bluearrow, Jul 5, 2011 IP
  8. DavidJames

    DavidJames Active Member

    Messages:
    446
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #8
    I know what you mean. I have quite a few websites with Amazon links that I need to begin replacing. My advice would be to hire an outsource guy to go through all of your websites and add new affiliate links...
     
    DavidJames, Jul 7, 2011 IP