| Author |
Message |
Paladin_Brewer
Lieutenant


Joined: Sep 24, 2003
Posts: 178
|
Posted:
Fri Feb 27, 2004 9:10 pm |
  |
Can a person make their own ban page? |
|
|
   |
 |
maciekp
Sergeant


Joined: Sep 09, 2003
Posts: 94
Location: Perth, WA
|
Posted:
Tue Mar 02, 2004 7:19 am |
  |
Absolutely, just edit includes/banned.php - it can be a static HTML page or PHP script, it's up to you. |
_________________ ElectricDice 0.8 - password & MD5, sitekey generator tool
Use SHA1 in Nuke |
|
    |
 |
MisterWORK
Support Mod


Joined: Jun 11, 2003
Posts: 245
|
Posted:
Wed Mar 03, 2004 12:26 am |
  |
| maciekp wrote: |
| Absolutely, just edit includes/banned.php - it can be a static HTML page or PHP script, it's up to you. |
I dont recomend that if you don't know what your doing Coz there is codes in that file that my system needs. |
_________________ Protector System for phpNuke.
<b>Current Version Released: 1.15.b2( 05/12-04) </b>
Support site: http://protector.warcenter.se |
|
     |
 |
maciekp
Sergeant


Joined: Sep 09, 2003
Posts: 94
Location: Perth, WA
|
Posted:
Wed Mar 03, 2004 12:33 am |
  |
Not really, it just displays a page or redirects to a different URL. If all the user wants is displaying a message then a simple HTML in banned.php would do.
Paladin, you can use this code if you want:
| Code: |
<?
header("HTTP/1.0 403 Forbidden - You don't have permission to access this server");
header("Connection: close");
header("Content-Type: text/html");
echo "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n"
."<html><head><title>403 Forbidden</title></head>\n"
."<body bgcolor=white link=999999>\n"
."<table width=100% height=100%>"
."<tr><td width=100% height=100% align=center valign=middle>"
."<h1><font face=\"arial black\">Forbidden</font></h1>\n"
."<img src=\"/images/html403.jpg\"><br><br>"
."<strong><font face=\"arial\">You do not have permission to access this service.</font></strong><br><br>\n"
."We apologise for the inconvenience. If you seek further information<br>\n"
."or have any questions, contact the administrator at "
."<script type=\"text/javascript\">document.write('username' + '@' + 'domain.com');</script>"
."<br><br>\n"
."</td></tr>"
."</table>"
."</body></html>";
exit();
?>
|
Make sure to change your email address in the javascript (it should protect against most adress harvesters) and upload your own picture to /images/html403.jpg or something similar. |
_________________ ElectricDice 0.8 - password & MD5, sitekey generator tool
Use SHA1 in Nuke |
|
    |
 |
MisterWORK
Support Mod


Joined: Jun 11, 2003
Posts: 245
|
Posted:
Wed Mar 03, 2004 12:58 am |
  |
Im the developer of this code and I think I know what my system needs or not
You will broke atleast 3 functions in my system if you use your own code. So as I said, Changes on your own risk. And in next release will you broke even more functions.
But offcourse it's up to anyone to make their own code. The thing you can do is just reddesign it and keep all my codes if you know what your doing.
Im not turning you down here maciekp just a warning that my system will not work as it should . |
_________________ Protector System for phpNuke.
<b>Current Version Released: 1.15.b2( 05/12-04) </b>
Support site: http://protector.warcenter.se |
|
     |
 |
maciekp
Sergeant


Joined: Sep 09, 2003
Posts: 94
Location: Perth, WA
|
Posted:
Wed Mar 03, 2004 1:02 am |
  |
Mister, there are no functions in banned.php, and blocker.php only calls:
| Code: |
| include("includes/banned.php");die(); |
. Am I missing something?  |
_________________ ElectricDice 0.8 - password & MD5, sitekey generator tool
Use SHA1 in Nuke |
|
    |
 |
MisterWORK
Support Mod


Joined: Jun 11, 2003
Posts: 245
|
Posted:
Wed Mar 03, 2004 1:20 am |
  |
No but in my next release there is. Thats why I say this coz if ppl using there own and ugrade then will the functions broke. As it is now are there only this redirect thing but in next release are there more functions  |
_________________ Protector System for phpNuke.
<b>Current Version Released: 1.15.b2( 05/12-04) </b>
Support site: http://protector.warcenter.se |
|
     |
 |
maciekp
Sergeant


Joined: Sep 09, 2003
Posts: 94
Location: Perth, WA
|
Posted:
Wed Mar 03, 2004 1:24 am |
  |
I understand that, but you've said that this modification will break 3 functions in existing release. I'm referring to 1.14b2...
| Quote: |
You will broke atleast 3 functions in my system if you use your own code. So as I said, Changes on your own risk. And in next release will you broke even more functions.
|
Anyway, the conclusion is that if you modify banned.php now you'll have to change it again when the next version comes out. |
_________________ ElectricDice 0.8 - password & MD5, sitekey generator tool
Use SHA1 in Nuke |
|
    |
 |
MisterWORK
Support Mod


Joined: Jun 11, 2003
Posts: 245
|
Posted:
Wed Mar 03, 2004 1:41 am |
  |
| maciekp wrote: |
| Anyway, the conclusion is that if you modify banned.php now you'll have to change it again when the next version comes out. |
Correct my friend  |
_________________ Protector System for phpNuke.
<b>Current Version Released: 1.15.b2( 05/12-04) </b>
Support site: http://protector.warcenter.se |
|
     |
 |
southernwolf
Corporal


Joined: Dec 14, 2003
Posts: 56
Location: Texas
|
Posted:
Mon Mar 08, 2004 12:50 pm |
  |
Umm... in the next release will there be a function so the GOD account can't get banned him or herself? I managed to ban myself once using Protector and it seems to me that Protector ought to follow the lead of nuke- the GOD account can't be deleted, or banned. |
|
|
    |
 |
MisterWORK
Support Mod


Joined: Jun 11, 2003
Posts: 245
|
Posted:
Mon Mar 08, 2004 2:15 pm |
  |
Heh and how did you manage to bann yourselves ? |
_________________ Protector System for phpNuke.
<b>Current Version Released: 1.15.b2( 05/12-04) </b>
Support site: http://protector.warcenter.se |
|
     |
 |
And1
Corporal


Joined: Oct 21, 2003
Posts: 63
|
Posted:
Mon Mar 08, 2004 7:09 pm |
  |
maybe hes talkin cause an admin could ban him or somethin :-/ anyway i just wanna say your protector system is great mister i got it installed on my site and its a great help any chance of maybe a banned page to go with it so viewers can see who has been banned etc.. |
|
|
      |
 |
djmaze
Captain


Joined: Nov 29, 2003
Posts: 566
Location: Netherlands
|
Posted:
Mon Mar 08, 2004 8:05 pm |
  |
I banned myself when i was debugging a new module on sql vulnerabilities.
Which it didn't have, but just for fun i was banned  |
_________________ Famous people never give their signature
http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please  |
|
    |
 |
southernwolf
Corporal


Joined: Dec 14, 2003
Posts: 56
Location: Texas
|
Posted:
Mon Mar 08, 2004 9:00 pm |
  |
| MisterWORK wrote: |
| Heh and how did you manage to bann yourselves ? |
Quite simple:
| Quote: |
Oh, I can attest to the efficacy of the Protector! I have it on my site and just from idle, mindless curiosity I ran Raven's snippet above and behold I banned myself.
http://yoursite.com/admin.php?admin=blahblah
Go ahead, click that link. I dare you! Now I have to figure out how to unban myself, any ideas? |
http://ravenphpscripts.com/postxf345-0-15.html
I was sorry to remove the Protector but there was no other way to re-access my admin panel. It'd be good if there were a function so admins can't accidentally ban themselves.  |
|
|
    |
 |
southernwolf
Corporal


Joined: Dec 14, 2003
Posts: 56
Location: Texas
|
Posted:
Mon Mar 08, 2004 9:04 pm |
  |
| And1 wrote: |
| maybe hes talkin cause an admin could ban him or somethin :-/ anyway i just wanna say your protector system is great mister i got it installed on my site and its a great help any chance of maybe a banned page to go with it so viewers can see who has been banned etc.. |
I am the admin on my site, buddy, and you ain't lived til you've banned yourself.
BTW it's not unusual:
http://www.nukecops.com/postp106391.html#106391 |
|
|
    |
 |
|
|