Avatar.Viper007Bond.com Killed

Sorry, but I’ve had to kill my public image rotating script. So far this month, it had gotten over 180,000 hits (in the whole last month, only 140,000 hits were made) which resulted in WAY too many open connections to the site at once. While that was very little bandwidth, it was still way too many people trying to access the script at once and my host had to kill it as it was starting to affect other people on my shared server.

It’s a real shame too as I had already completed about 1/2 of the complete recode of it. Perhaps one day I’ll bring it back up as an invitation only service for use on non-high traffic sites, but not for now (busy with other things).

And for those who have no clue what I’m talking about, I had a script located at http://avatar.viper007bond.com/ where after signing up, you could enter the URLs to some images hosted elsewhere. Then you’d use a URL given to you by the script as your avatar or sig on forums and my script, when called, would redirect people to one of your URLs. Basically, it was an image rotator.

Sorry guys.

37 comments to Avatar.Viper007Bond.com Killed

  1. Spanish says:

    i dont speak more english, i like says you, it you can post the code use in Avatar.Viper007Bond.com, and the people can donwload your great code and use in free hosting.
    this form your host dont have more use and the people can manager the site :)

    sorry for my bad english, i think you can understand me.

  2. Viper007Bond says:

    Well, my code wouldn’t work too well publicly, but here’s some simple PHP to get the job done. Just put it in a file (say rotator.php) and put it on your site:

    <?php
    
    // Set all of your image URLs here
    $images = array(
    	'http://www.google.com/intl/en/images/logo.gif',
    	'http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif',
    	'http://www.viper007bond.com/wordpress/wp-content/themes/neat_1024/images/header_1024.jpg',
    );
    
    header('Location: ' . $images[mt_rand(0, count($images) - 1)]);
    
    ?>

    Then, since many forums don’t allow images ending with “.php”, setup a fake URL. Just add this to a .htaccess file located in the same folder:

    Redirect rotator.jpg http://yousite.com/rotator.php

    Then just use http://yousite.com/rotator.jpg and you’ll be good to go.

    Hope you understand that. :)

  3. Spanish says:

    i have only one problem, i upload the rotator.php and work but… the file .htaccess i write Redirect rotator.jpg http://www.sombrarotator.host.sk/rotator.php and upload but not work. what is the problem? example:

    http://www.sombrarotator.host.sk/rotator.php this work
    http://www.sombrarotator.host.sk/rotator.jpg dont redirect.. 404 url

  4. Viper007Bond says:

    Try putting a slash in front of “rotator.jpg”, like this: /rotator.jpg

    That work?

  5. Spanish says:

    yes work, “www.sombrarotator.host.sk/rotator.php/rotator.jpg” but another problem :( , the forum says Sorry, dynamic pages in the [IMG] tags are not allowed.

  6. Viper007Bond says:

    That’s why we made http://www.sombrarotator.host.sk/rotator.jpg — use it rather than .php. ;)

  7. Spanish says:

    yes i test posting the [img]www.sombrarotator.host.sk/rotator.php[/img] but the forum says not allow .php only jpg,gif,png ect and posting another says dynamic… ect.

    how to fix this? i think need http://www.sombrarotator.host.sk/rotator.jpg for work..

  8. Viper007Bond says:

    Yes, this is what http://www.sombrarotator.host.sk/rotator.jpg is for.

    Are you sure you did the redirect correctly? Try reading this page.

    If that doesn’t work, contact your host. They may not allow redirects.

  9. Spanish says:

    one friend says me writing in the .htaccess file

    +FollowSymlinks
    RewriteEngine on
    RewriteRule rotator.php rotator.jpg
    

    now i can post my sign!, but need use the “/rotator.jpg”.., but is = the url dont see. :P
    thank for all :)

  10. Viper007Bond says:

    Yes, that’d work if your server has mod_rewrite enabled.

    And try this rewrite rule instead perhaps (I think your friend has it backwards):

    RewriteRule ^rotator.jpg$ rotator.php [QSA,L]
  11. Phunky says:

    Hey Viper, Glad ive finaly found your personal website :)

    Loving some of your stuff on here, going to go stick the video plugin on a couple of my sites

  12. Hotaru says:

    Well, viperbond, its a real shame that its gone coz i was enjoying it SO much!!! Like i was one of a few ppl who actually have a proper rotating sig. And it worked really well…

    I ll try to create my own, however, I dont have a website… Would a blog page work?

  13. Viper007Bond says:

    No, but there are plenty of websites out there that offer free PHP hosting.

    My host does for example: http://hostrocket.com/free/

  14. Avatar freak says:

    :(
    I wish I could get an invitation. I really like your image manager

  15. Hotaru says:

    Ah ha.. thanx ViperBond.. Just to let you know, i really enjoyed your service… Thanks!!!

  16. master4scorpion says:

    its too bad because the rotator was one of the best I used, and I only used a few. I did use it for a while and I hope it can come back one day

  17. 041955 says:

    Hey, loved your rotator Viperbond. Sorry to see it disappear!

  18. new one says:

    dam, hope it comes back up again…

  19. Kaboon says:

    Damn viper, I think we’d need to talk. I like this idea. Maybe we can work something out, like distributed loads or something. :)

  20. Viper007Bond says:

    Heh, bug me when you next see me on IRC. :)

  21. Jeremy Yak says:

    I do not appreciate the idiots who tried to XSS attack my Image Rotator.
    I know they came from here, and I don’t understand what you would have accomplished anyways lol. It’s ok, they were both noob hackers :P
    ~Jeremy~

  22. Hotaru says:

    @ Jeremy: I was accessing your Sig Rotator and desfinitely was most interested in it… Altho, you only allow 5 different sigs!?! Viper had up to 50!!! lol…

  23. Viper007Bond says:

    The new version I was coding was going to have a cap of like 250 (basically infinite). :/

  24. Hotaru says:

    So… any chances of me getting to use it??? I only use it for a forum, ie. Clubbleach…

  25. Viper007Bond says:

    It’s only like 1/4 done and it’s going on the back burner now due to this and because I want to get the new theme for my site done plus some other coding.

    Just sign up for some free PHP hosting and see the above code snippets. ;)

  26. Hotaru says:

    Well, yes, but, ok, I ll give it a go thanks…

  27. Audigex says:

    Hey, any chance of you releasing the code you actually used? The part you showed up there is great for a single user, but I’d like to be able to offer the same service as you did on my server, at least for users of my forum.

    Thanks
    ~Audigex

  28. Viper007Bond says:

    No, the code was horrible. It was really poorly coded and was written when I was first learning PHP many years ago.

    As for the recode I was working on, all that’s done is the GUI, so that wouldn’t be of much use to you either.

    Sorry. :/

  29. Audigex says:

    But could you possibly post it anyway? I’d like to be able to see it, and possibly redo it if needs be. If nothing else it’d be a good learning exercise for me to play with it for a while =P

    Pwetty please?

  30. Viper007Bond says:

    All it was was a basic user account system that used MySQL. If you know PHP, it should be easy enough to code. ;)

  31. Audigex says:

    Yeah, but I was more wondering how you set the .htaccess for each user, to make the image redirect to the script: or can you set it so any image in the folder redirects there?

  32. Viper007Bond says:

    Nah, there was no folder. It was fake and redirected to a PHP script:

    RewriteEngine  on
    RewriteRule	^view/(.*)	avatar.php?username=$1
  33. Audigex says:

    Ah thanks, that makes sense now! =P

    Might have a go at making my own later. Should be fun.

  34. damn….dats sucks viper ur site was a big ass help…..wen you gonna start another one up?

  35. thorne says:

    That sig rotator u showed doesnt work. i need one for a forum and i dont have a site to upload it onto. i only use imageshack and i cant upload that with it.

  36. Viper007Bond says:

    thorne on December 22nd, 2006 at 1:40 PM wrote:

    That sig rotator u showed doesnt work. i need one for a forum and i dont have a site to upload it onto. i only use imageshack and i cant upload that with it.

    My stupid blog software is adding in <p>’s where it shouldn’t.

    Here you go: http://thorne.pastebin.com/843506

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>