Topics


Blogs


Forums


Samples


Media


Labs


Resources

 




DevCentral > Weblogs > Lori MacVittie - Two Different Socks
 The Treachery of Hyperlinks
posted on Friday, August 08, 2008 3:59 AM

notablog

With apologies to René Magritte

 

Did you know you could stop the treachery that is Rickrolling hyperlinks with an iRule? Just search your outbound HTML for the appropriate YouTube URLs (you may need a data group to store them all) and strip them out, or search your inbound posts for the URLs and refuse to post them.

Of course you could also write an iRule that automatically changes every submitted URL to be a rickroll, but man, that's evil! Maybe you just want to do it for a specific user. You can do that with iRules if your site uses cookies to identify users by id or name. Just check the cookie and if you find the right user, fire off the appropriate iRule code to replace the URLs before it's posted.

It would still be evil. But it would be funny evil, if you know what I mean.

Follow me on Twitter View Lori's profile on SlideShare AddThis Feed Button Bookmark and Share



 
      

Feedback


8/8/2008 7:16 AM
Gravatar That's a great idea! I hadn't thought of using iRules for a prank. Just don't freak out when the next April 1 comes around B-).

-Joe
Joe Pruitt

8/14/2008 1:12 PM
Gravatar Heh back when there was a bigpipe command to control the LED's on the old BIG-IP chassis I thought about writing a fun little script to drop in cron that would randomly make various lights blink red <grin>.
Denny Payne
 Leave Feedback
Title  
Name  
Email
Url
Comments   
Please add 2 and 3 and type the answer here: