21
Kissaki
Re: HTTP_REFERER error and function checkReferer
  • 2005/9/30 23:11

  • Kissaki

  • Just popping in

  • Posts: 29

  • Since: 2005/7/16


hmm, no edit function? ok then ;)
i fixed it this way (xoops 2.2.2):
in class/xoopssecurity.php

Quote:
function checkReferer($docheck=1)
{
if ($docheck == 0) {
return true;
}
$ref = $_SERVER['HTTP_REFERER'];
if ($ref == '') {
return false;
}
$pref = parse_url($ref);
if ( $pref['host'] != "myip" ) {
return false;
}
return true;
}



where i typed 'myip' i have my ip ;)
so, what does it do? it gets the referer url and checks if the host of this url is 'myip'
that's all
hope it'll help so.
greetz



22
Kissaki
Re: HTTP_REFERER error and function checkReferer
  • 2005/9/30 22:29

  • Kissaki

  • Just popping in

  • Posts: 29

  • Since: 2005/7/16


sry, but where?
in wich file? ;)
thx




TopTop
« 1 2 (3)



Login

Who's Online

160 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits