Block Referee with html or java NOT HTACCESS

Status
Not open for further replies.

djflakf1

Active Member
60
2012
6
30
Guys i want to know that is posible block a referee ( a site ) for enter to my site with html or java without use htacess is posible???
 
1 comment
You can try something like,
Code:
var block = ['url1', 'url2']; 
for (var b = block.length; b--;) {
if (document.referrer.match(block[b])) 
   window.location = "http://google.com/";
}
Source

Note that they can still visit your site by disabling the JS support of their browsers.
 
Status
Not open for further replies.
Back
Top