• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Forbidden to acces to this page! REP++

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
Hello, i was looking in some servers, and i found out that they was using a script like http://ip.com/phpmyadmin
When i accessed to the page, it said forbidden or something,

It is a script, can anyone post it here?

I can allow which ip can access and the rest deny.

Using windows!


Thank you ;) REP++ ofc.
 
Last edited:
Thank you Bintzer, it worked.

But i think they will figure out, so i'll keep this thread open if someone posts the script.

add a .htaccess inside the phpmyadmin folder,
here a example to restrict it by ips

Code:
<Limit GET POST>
order deny,allow
deny from all
allow from 127.0.0.1
</Limit>
add as many ips u want....
 
i added it on cd /var/www/phpmyadmin/.htaccess

The bottom of the .htaccess file.

My new error,

When creating character
Code:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute queries while 
other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable
 query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.' in /var/www/accountmanagement.php:713 Stack trace: #0 /var/www
/accountmanagement.php(713): PDO->query('INSERT INTO `pl...') #1 /var/www/index.php(130): include('/var/www/accoun...') #2 {main} thrown in /var/www
/accountmanagement.php on line 713

Also the character creats but i'm gettin this.
 
i added it on cd /var/www/phpmyadmin/.htaccess

The bottom of the .htaccess file.

u added it via command line? if yes then u can't add it by just typing the path /var/www etc bekaus it is just a shortcut to the real folder...

the real path to phpmyadmin is
/usr/share/phpmyadmin
if you installed it via aptitude
 
Back
Top