How to Block an IP Address on MySpace
One of the most common ways to track who visits your MySpace profile is with a profile tracker. These trackers are a JavaScript code that you insert in your "About Me" section. The code picks up what IP addresses, which are a computer's identification number, visit your profile. If you want to block a specific user or IP address, you can easily do so by inserting a JavaScript code that blocks IP addresses.
Instructions
-
-
1
Log into your MySpace account.
-
2
Click "Edit Profile" under the "Profile" tab.
-
-
3
Paste an IP-blocking JavaScript code into your "About Me" section. They generally look like:
<script type="text/javascript">
//Enter list of banned ips, each separated with a comma:
var bannedips=["23.23.23.23", "11.11.11.11"]
var ip = '<!--#echo var="REMOTE_ADDR"-->'
var handleips=bannedips.join("|")
handleips=new RegExp(handleips, "i")
if (ip.search(handleips)!=-1){
alert("Your IP has been banned from this site. Redirecting...")
window.location.replace("http://www.google.com")
}
</script>
-
4
Type the IP addresses you want to ban into the appropriate section.
-
5
Click "Save Changes" at the bottom of the page. Your profile will look the same, but those with the IP addresses you listed in the JavaScript will be redirected to another page when trying to visit your profile.
-
1
Tips & Warnings
If you want to block a specific user from seeing your profile, you can also go to their MySpace page and click "Block."