Sorry it is taking a while to upload but here is the how I did it.
Here is where I got the information on how to do this.
http://gbatemp.net/threads/browserhax-is-still-working.400991/
This only works with the n3ds.
Step 1- Set your primary dns to 107.211.140.165 and your secondary dns to 107.211.140.065
Step 2- Turn off your wifi and open the browser.
Step 3- Type the yls8.mtheall.com/browserhax_fright.php into the url.
Step 4- Exit the browser and turn on you wifi and open the browser again.(You only have 20-ish seconds to do this.
Step 5- you will have to wait for a few seconds into browserhax starts to work.
If you get an error turn your WiFi off again and turn it back on .