Archive for June, 2007

How To > Get to OiNK When It Appears To Be Down

Thursday, June 28th, 2007 | Internet | 5 Comments

Update 7/6/07: OiNK just decided due to their dns problems to change their url.  Instead of oink.me.uk it is now oink.cd.  The instructions below still apply since they kept the same IP’s.  I have updated it to list those as well.

Ok.  Right now OiNK’s registration shows up as suspended.  This makes it frustrating to get to the world’s greatest private music tracker.  I am not here to explain it, +if you don’t know that’s your problem.  I am just show you how to get to it. 

First to get there:  http://85.17.40.71

Then even getting there won’t make your torrents trackers correct, so you will need to make sure your computer knows how to get there even with fucked up DNS. 

So in Windows go to Start > Run > Type: C:\windows\system32\drivers\etc\hosts > It will open and ask you what to run it with, choose: Wordpad (or notepad) > If your hosts file is not messed up it will probably be mostly blank except for some comments and then a thing saying 127.0.0.1 localhost

Simply hit enter after this and paste the following in:
85.17.40.71 oink.me.uk
85.17.40.69 tracker.oink.me.uk
85.17.40.70 irc.oink.me.uk
85.17.40.71 oink.cd
85.17.40.69 tracker.oink.cd
85.17.40.70 irc.oink.cd

Save and exit, then restart torrent program.  Oh if you have stuff in yours hosts file already that you did not put there it is either redirecting to 127.0.0.1 which tends to be done by anti-spyware / advertising software and is ok because it eliminates junk sites.  If it’s anything but you might have been hijacked and I would highly recommend deleting the entries you aren’t familiar with.

For Linux simply type:

echo ‘85.17.40.71 oink.me.uk
85.17.40.69 tracker.oink.me.u
85.17.40.70 irc.oink.me.uk’ >> /etc/hosts

echo ‘85.17.40.71 oink.cd
85.17.40.69 tracker.oink.cd
85.17.40.70 irc.oink.cd’ >> /etc/hosts

How To > Use .htaccess to screw over a hotlinking asshole

Tuesday, June 26th, 2007 | Internet, Web Design | 4 Comments

Ok, so with my page it’s not just images people try to link to, it’s entire pages. Why? Because a lot of them look pretty damn good as stand alone pages and are just much easier to work with inside iframes.

So I saw this guy in my statistics that was hotlinking directly to my Sega Genesis and Nintendo pages. Well that really pissed me off because it took me a LOT of time to put those bloody games on there. If you want the NES on your page, you can download it yourself. If you want the Sega Genesis on your page, well there you are kind of screwed, since it is licensed and the guys who made it promised me updates and then disappeared like a fart in the wind. Anyways, this is getting off the subject.

I looked around and only saw ways to prevent hotlinking to image files, pages seemed a little more obscure. So I figured I would write it up. We will use the asshole who did it to me as an example.


RewriteEngine on # I had this on earlier in my htaccess, but if you didn’t you will need to add it to rewrite anything.
#RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?baddomain1\.com [NC,OR] #Uncomment this line if you have more than 1 asshole linking to you, and copy it if you have several.
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?aw3bo\.net [NC] #This says look to aw3bo.net (NC = Non case sensitive)
RewriteRule \.(php|htm)$ http://www.thesmartass.info/hotlink.html [R,L] #This says if he links to my pages to force him to my hilarious hotlink page..

Basically my actual pages are never named anything but php or htm, so this will make all my actual pages that he links to force him to see my hotlink page. Be careful, I screwed this part up at first… All requests coming from his site asking for .php or .htm are getting redirected.. So you have to name your file extension you link to something different. I eventually went with .html

It’s much more entertaining than sending them to just an image. Originally my hotlink page did a meta refresh after 10 seconds, but then I noticed that my page still looks good even in a tiny frame since the images are proportional etc… So I removed that for just an old fashion giant link under the probably offensive image.

You can modify the rule where it says php|htm to add additional extensions by adding more pipes jpg|gif|png etc.. But if you redirect an image make sure that you are redirecting them To an image…

Some other nasty things you can do to the people you dislike in .htaccess include:


#Redirect IP’s Somewhere Else
RewriteEngine on
RewriteCond %{REMOTE_ADDR} 2.21.1.19 [OR]
RewriteCond %{REMOTE_ADDR} 70.200.40.157
RewriteRule /* http://www.uglypeople.com [L]


#Just straight up block users from accessing the site… not quite as fun but still useful
order deny,allow
deny from 80.76.55.21
deny from .spammers.com
allow from all

UPDATE 7/16: People seem to keep doing this. Stop it Mo-Fo’s… I have been researching the .htaccess more and have found a way to simplify the rewrites to use a lot less code, and much less confusing syntax.

#Hotlinking Assholes
RewriteCond %{HTTP_REFERER} (aw3bo|spotlightarcade) [NC]
RewriteRule \.(php|htm)$ http://www.thesmartass.info/hotlink.html [R,L]

Notice that now I have 2 different sites listed, separated by a pipe and inside (). That’s it. I don’t need to put the exact syntax or even the .com’s etc.. anymore… If you are refered to me by a site with that info, you get zapped to my screw you / meatspin page.

UPDATE 7/19: Here’s a rule I just changed. I have been adding TONS of rules to prevent overall nasty people from being on my site. Now I had these guys redirecting to “-” but that just sends them to my 403 page… Screw that, Instead I have decided that from now on I shall be updating my rule to link to the most recent hotlinker. So all of my crappy traffic will get sent to the people who are trying to steal traffic from me to begin with. Below is the current rule, remember there are countless RewriteCond before the actual rule, if you try to add this rule without a condition you will send all your traffic there…

#sends all my shitty traffic to most recent hotlinker
RewriteRule /* http://www.spotlightarcade.info/sega/ [L]

Return to The SmartAss DOT Info

Safari 3 Beta for the PC

Monday, June 11th, 2007 | Internet, Web Design | No Comments

As a Web Developer I am bloody thrilled that Apple has just released Safari 3 Public Beta for the PC!!!! I don’t have a mac and can’t test my websites on mac. I knew that would be changing soon since I am buying an iPhone which comes with safari built into it, however testing on a 3.5″ screen is not the same as testing on a big ass monitor.

I am pleased to say that virtually my entire site works right off the nut in safari with no changes. Even the new work in progress design loads fast and runs like a champ. The java applets didn’t seem to launch the games in them, but it seems like it should be able to, so if I tinker with the object code a bit it will probably work, also this is a beta… and that was the only thing that didn’t load. The browser actually passes the acid2 test which basically mean it’s a bloody standard compliant browser (Microsoft take note)

Upon install it worked with flash and embedded windows media (yeah i was surprised too).  It imported my bookmarks from all of my other browsers.  It has tabs etc…   One thing that did annoy me was that you can only resize your browser window from the lower right corner.  This is stupid if you want to be on a PC since I am used to stretching my windows from all corners!!!!  Still, minor annoyances aside, it worked great.

Am I telling you to switch from Firefox to Safari? Hell no, It does look like if you use IE all the time that it might be worth looking into switching, however there is no add-on system to this like there is in Firefox where anybody can develop for it. This is what makes Firefox the superior browser and will continue to hold it’s reign for the foreseeable future.

Download Safari 3

How To > Power Mp3 Player With Potatoes!

Friday, June 8th, 2007 | Neat Tricks | No Comments