BartAfterDark Posted June 21, 2006 Report Share Posted June 21, 2006 Hey, I tried putting in the # so it shouldn't check for http_refer. But it just wont work, after I did it the links in apanel turns to blank pages and not working. I don't know if it has something to do with the port 82 i'm using now.- - Lars Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted June 22, 2006 Report Share Posted June 22, 2006 Yes, it does... BTW: You have to comment the whole enter script... not just one line... Everything. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
BartAfterDark Posted June 22, 2006 Author Report Share Posted June 22, 2006 # package secure; # # If you want to disable security check - comment the following lines with #. # # if (($ENV{HTTP_REFERER}!~/^http[s]?:\/\/localhost\/apanel/)&&($ENV{HTTP_REFERER}!~/^http[s]?:\/\/127\.0\.0\.\d+\/apanel/)){ # print " # <div id=\"main\"> # <h2>» Security Alert!</h2> # <h3>Possible Attack</h3> # <p> # HTTP_REFERER is not localhost. but '<b>".$ENV{HTTP_REFERER}."</b>'. # <br /> # <br /> # To disable this warning go: /home/admin/www/cgi-bin/secure.pm # <p> # </div>"; # # require footer; # # exit; # }; # # return 1; This should work then? Quote Link to comment Share on other sites More sharing options...
MrX Posted June 23, 2006 Report Share Posted June 23, 2006 Yes Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted July 9, 2006 Report Share Posted July 9, 2006 Wll yes, if everything is commented as i said. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
TeduhDulu Posted August 30, 2008 Report Share Posted August 30, 2008 Wll yes, if everything is commented as i said. i have the same situation i check my browser ( im using k-meleon ) and i see that my browser is block http referrer so i think the problem maybe with the browser Quote I'm not a coder nor a programmer. I just love learning from error Link to comment Share on other sites More sharing options...
olajideolaolorun Posted September 11, 2008 Report Share Posted September 11, 2008 Yeah, it actually happens on my new PC also. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.