Jump to content
Mark

Restringir a um IP

Recommended Posts

Mark

Boas pessoal, a minha questão é simples: Tenho uma página de administração e gostaria que apenas o meu IP conseguisse acedê-la, os outros seriam reencaminhados para o 404.

Que código tenho de adicionar?

:thumbsup:

Share this post


Link to post
Share on other sites
Mark

o mais simples é por htaccess

tens aqui um exemplo de como fazer o inverso, mas as alterações são triviais para permitir fazer o que pretendes

http://www.javascriptkit.com/howto/htaccess5.shtml

Não sabia que dava por .htaccess, muito obrigado! O código acabou por ficar assim:

ErrorDocument 403 /nao_autorizado.php
order deny,allow
deny from all
allow from 127.0.0.1

Quem não vier do ip 127.0.0.1 é reencaminhado para a página nao_autorizado.php

Edited by brunoais
geshi(?)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

25

(write): Connected to the write database

Connected to the write database

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 257,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 349,
    'function' => '_establishConnection',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 992,
    'function' => 'checkConnection',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 2371,
    'function' => 'real_escape_string',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store/Database.php',
    'line' => 92,
    'function' => 'in',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store/Database.php',
    'line' => 108,
    'function' => 'loadIntoMemory',
    'class' => 'IPS\\Data\\Store\\_Database',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store/Database.php',
    'line' => 162,
    'function' => 'get',
    'class' => 'IPS\\Data\\Store\\_Database',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/AbstractData.php',
    'line' => 126,
    'function' => 'exists',
    'class' => 'IPS\\Data\\Store\\_Database',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store.php',
    'line' => 277,
    'function' => '__isset',
    'class' => 'IPS\\Data\\_AbstractData',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store.php',
    'line' => 268,
    'function' => '__isset',
    'class' => 'IPS\\Data\\_Store',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Request/Request.php',
    'line' => 341,
    'function' => '__isset',
    'class' => 'IPS\\Data\\_Store',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 416,
    'function' => 'ipAddressIsBanned',
    'class' => 'IPS\\_Request',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 38,
    'function' => 'checkCached',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  13 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 109,
    'function' => 'init',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  14 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'i',
    'class' => 'IPS\\_Dispatcher',
    'type' => '::',
  ),
)


(read): SELECT * FROM `core_store` WHERE ( store_key IN('cacheKeys') )

SELECT * FROM `core_store` WHERE ( store_key IN('cacheKeys') )

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store/Database.php',
    'line' => 92,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store/Database.php',
    'line' => 108,
    'function' => 'loadIntoMemory',
    'class' => 'IPS\\Data\\Store\\_Database',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store/Database.php',
    'line' => 162,
    'function' => 'get',
    'class' => 'IPS\\Data\\Store\\_Database',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/AbstractData.php',
    'line' => 126,
    'function' => 'exists',
    'class' => 'IPS\\Data\\Store\\_Database',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store.php',
    'line' => 277,
    'function' => '__isset',
    'class' => 'IPS\\Data\\_AbstractData',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Data/Store.php',
    'line' => 268,
    'function' => '__isset',
    'class' => 'IPS\\Data\\_Store',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Request/Request.php',
    'line' => 341,
    'function' => '__isset',
    'class' => 'IPS\\Data\\_Store',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 416,
    'function' => 'ipAddressIsBanned',
    'class' => 'IPS\\_Request',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 38,
    'function' => 'checkCached',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 109,
    'function' => 'init',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  13 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'i',
    'class' => 'IPS\\_Dispatcher',
    'type' => '::',
  ),
)


(read): SELECT * FROM `core_sessions` WHERE id='mnfr7mdtla384qbade488rgm7e'

SELECT * FROM `core_sessions` WHERE id='mnfr7mdtla384qbade488rgm7e'

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Session/Store/Database.php',
    'line' => 60,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Session/Front.php',
    'line' => 93,
    'function' => 'loadSession',
    'class' => 'IPS\\Session\\Store\\_Database',
    'type' => '->',
  ),
  6 => 
  array (
    'function' => 'read',
    'class' => 'IPS\\Session\\_Front',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Session/Session.php',
    'line' => 91,
    'function' => 'session_start',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 438,
    'function' => 'i',
    'class' => 'IPS\\_Session',
    'type' => '::',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 38,
    'function' => 'checkCached',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 109,
    'function' => 'init',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'i',
    'class' => 'IPS\\_Dispatcher',
    'type' => '::',
  ),
)


(read): SELECT * FROM `core_output_cache` WHERE cache_key='page_7296b43d0ee81f88a63e3d2cf4bd96e8_1_' AND cache_expire>1590777389

SELECT * FROM `core_output_cache` WHERE cache_key='page_7296b43d0ee81f88a63e3d2cf4bd96e8_1_' AND cache_expire>1590777389

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Output/Cache/Database.php',
    'line' => 45,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Output/Cache.php',
    'line' => 104,
    'function' => '_get',
    'class' => 'IPS\\Output\\Cache\\_Database',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 443,
    'function' => 'get',
    'class' => 'IPS\\Output\\_Cache',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 38,
    'function' => 'checkCached',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 109,
    'function' => 'init',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'i',
    'class' => 'IPS\\_Dispatcher',
    'type' => '::',
  ),
)


(read): SELECT * FROM `forums_forums`  LEFT JOIN `core_permission_index` ON core_permission_index.app='forums' AND core_permission_index.perm_type='forum' AND core_permission_index.perm_type_id=forums_forums.id  LEFT JOIN `core_members` ON core_members.member_id=forums_forums.last_poster_id WHERE (sub_can_post=0 OR min_posts_view<=0) AND (sub_can_post=0 OR can_view_others=1) AND (( FIND_IN_SET(2,perm_view) ) OR perm_view='*' ) ORDER BY position

SELECT * FROM `forums_forums`  LEFT JOIN `core_permission_index` ON core_permission_index.app='forums' AND core_permission_index.perm_type='forum' AND core_permission_index.perm_type_id=forums_forums.id  LEFT JOIN `core_members` ON core_members.member_id=forums_forums.last_poster_id WHERE (sub_can_post=0 OR min_posts_view<=0) AND (sub_can_post=0 OR can_view_others=1) AND (( FIND_IN_SET(2,perm_view) ) OR perm_view='*' ) ORDER BY position

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Node/Model.php',
    'line' => 442,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Forum/Forum.php',
    'line' => 722,
    'function' => 'loadIntoMemory',
    'class' => 'IPS\\Node\\_Model',
    'type' => '::',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Topic/Topic.php',
    'line' => 180,
    'function' => 'loadIntoMemory',
    'class' => 'IPS\\forums\\_Forum',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Http/Url/Internal.php',
    'line' => 175,
    'function' => 'preCorrectUrlFromVerifyClass',
    'class' => 'IPS\\forums\\_Topic',
    'type' => '::',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Http/Url/Friendly.php',
    'line' => 216,
    'function' => 'correctUrlFromVerifyClass',
    'class' => 'IPS\\Http\\Url\\_Internal',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 330,
    'function' => 'correctFriendlyUrl',
    'class' => 'IPS\\Http\\Url\\_Friendly',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 85,
    'function' => 'checkUrl',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 109,
    'function' => 'init',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'i',
    'class' => 'IPS\\_Dispatcher',
    'type' => '::',
  ),
)


(read): SELECT * FROM `forums_topics` WHERE `tid`='60351'

SELECT * FROM `forums_topics` WHERE `tid`='60351'

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Patterns/ActiveRecord.php',
    'line' => 138,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Patterns/ActiveRecord.php',
    'line' => 181,
    'function' => 'load',
    'class' => 'IPS\\Patterns\\_ActiveRecord',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Http/Url/Internal.php',
    'line' => 177,
    'function' => 'loadFromUrl',
    'class' => 'IPS\\Patterns\\_ActiveRecord',
    'type' => '::',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Http/Url/Friendly.php',
    'line' => 216,
    'function' => 'correctUrlFromVerifyClass',
    'class' => 'IPS\\Http\\Url\\_Internal',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 330,
    'function' => 'correctFriendlyUrl',
    'class' => 'IPS\\Http\\Url\\_Friendly',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 85,
    'function' => 'checkUrl',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 109,
    'function' => 'init',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'i',
    'class' => 'IPS\\_Dispatcher',
    'type' => '::',
  ),
)


(write): INSERT INTO `core_view_updates` ( `classname`, `id` ) VALUES ( 'IPS\forums\Topic', 60351 )

INSERT INTO `core_view_updates` ( `classname`, `id` ) VALUES ( 'IPS\forums\Topic', 60351 )

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 937,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 223,
    'function' => 'insert',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 50,
    'function' => 'manage',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT * FROM `core_tags` WHERE tag_meta_app='forums' AND tag_meta_area='forums' AND tag_meta_id=60351

SELECT * FROM `core_tags` WHERE tag_meta_app='forums' AND tag_meta_area='forums' AND tag_meta_id=60351

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7056,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7032,
    'function' => 'tags',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/init.php(820) : eval()\'d code',
    'line' => 13,
    'function' => 'prefix',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 241,
    'function' => '_setBreadcrumbAndTitle',
    'class' => 'IPS\\Content\\advancedtagsprefixes_hook_addPrefixToTitle',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 50,
    'function' => 'manage',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT * FROM `forums_posts` WHERE `pid`=505651

SELECT * FROM `forums_posts` WHERE `pid`=505651

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Patterns/ActiveRecord.php',
    'line' => 138,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7859,
    'function' => 'load',
    'class' => 'IPS\\Patterns\\_ActiveRecord',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 1434,
    'function' => 'firstComment',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 252,
    'function' => 'metaDescription',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 50,
    'function' => 'manage',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  13 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT * FROM `forums_forums`  LEFT JOIN `core_permission_index` ON core_permission_index.app='forums' AND core_permission_index.perm_type='forum' AND core_permission_index.perm_type_id=forums_forums.id WHERE parent_id=-1 AND club_id IS NULL AND (( FIND_IN_SET(2,core_permission_index.perm_view) ) OR core_permission_index.perm_view='*' ) ORDER BY position

SELECT * FROM `forums_forums`  LEFT JOIN `core_permission_index` ON core_permission_index.app='forums' AND core_permission_index.perm_type='forum' AND core_permission_index.perm_type_id=forums_forums.id WHERE parent_id=-1 AND club_id IS NULL AND (( FIND_IN_SET(2,core_permission_index.perm_view) ) OR core_permission_index.perm_view='*' ) ORDER BY position

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 271,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Node/Model.php',
    'line' => 217,
    'function' => 'setKeyField',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Node/Model.php',
    'line' => 174,
    'function' => 'nodesWithPermission',
    'class' => 'IPS\\Node\\_Model',
    'type' => '::',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Node/Model.php',
    'line' => 569,
    'function' => 'roots',
    'class' => 'IPS\\Node\\_Model',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Forum/Forum.php',
    'line' => 1406,
    'function' => 'theOnlyNode',
    'class' => 'IPS\\Node\\_Model',
    'type' => '::',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 87,
    'function' => 'theOnlyForum',
    'class' => 'IPS\\forums\\_Forum',
    'type' => '::',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT forums_posts.*, author.*, author_pfields.* FROM `forums_posts`  LEFT JOIN `core_members` AS `author` ON author.member_id = forums_posts.author_id  LEFT JOIN `core_pfields_content` AS `author_pfields` ON author_pfields.member_id=author.member_id WHERE forums_posts.topic_id=60351 AND (forums_posts.queued IN(0,2)) ORDER BY post_date asc LIMIT 0,20

SELECT forums_posts.*, author.*, author_pfields.* FROM `forums_posts`  LEFT JOIN `core_members` AS `author` ON author.member_id = forums_posts.author_id  LEFT JOIN `core_pfields_content` AS `author_pfields` ON author_pfields.member_id=author.member_id WHERE forums_posts.topic_id=60351 AND (forums_posts.queued IN(0,2)) ORDER BY post_date asc LIMIT 0,20

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 3759,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Topic/Topic.php',
    'line' => 1861,
    'function' => '_comments',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 259,
    'function' => 'comments',
    'class' => 'IPS\\forums\\_Topic',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT * FROM `core_pfields_data` WHERE pf_member_hide != 'hide'

SELECT * FROM `core_pfields_data` WHERE pf_member_hide != 'hide'

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Member/Member.php',
    'line' => 2168,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Content.php',
    'line' => 172,
    'function' => 'contentProfileFields',
    'class' => 'IPS\\_Member',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 3761,
    'function' => 'constructFromData',
    'class' => 'IPS\\_Content',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Topic/Topic.php',
    'line' => 1861,
    'function' => '_comments',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 259,
    'function' => 'comments',
    'class' => 'IPS\\forums\\_Topic',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT * FROM `core_pfields_data` WHERE pf_member_hide != 'hide'

SELECT * FROM `core_pfields_data` WHERE pf_member_hide != 'hide'

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Member/Member.php',
    'line' => 2168,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Content.php',
    'line' => 172,
    'function' => 'contentProfileFields',
    'class' => 'IPS\\_Member',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 3761,
    'function' => 'constructFromData',
    'class' => 'IPS\\_Content',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Topic/Topic.php',
    'line' => 1861,
    'function' => '_comments',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 259,
    'function' => 'comments',
    'class' => 'IPS\\forums\\_Topic',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT core_reputation_index.type_id, core_reputation_index.member_id, core_reputation_index.reaction FROM `core_reputation_index` WHERE core_reputation_index.rep_class='IPS\forums\Topic\Post' AND core_reputation_index.type='pid' AND ( core_reputation_index.type_id IN(505651,505654,505656) ) AND ( core_reputation_index.reaction IN(1) )

SELECT core_reputation_index.type_id, core_reputation_index.member_id, core_reputation_index.reaction FROM `core_reputation_index` WHERE core_reputation_index.rep_class='IPS\forums\Topic\Post' AND core_reputation_index.type='pid' AND ( core_reputation_index.type_id IN(505651,505654,505656) ) AND ( core_reputation_index.reaction IN(1) )

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 3817,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Topic/Topic.php',
    'line' => 1861,
    'function' => '_comments',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 259,
    'function' => 'comments',
    'class' => 'IPS\\forums\\_Topic',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT member_id, name, members_seo_name, member_group_id FROM `core_members` WHERE ( member_id IN(28027) )

SELECT member_id, name, members_seo_name, member_group_id FROM `core_members` WHERE ( member_id IN(28027) )

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 271,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 3830,
    'function' => 'setKeyField',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Topic/Topic.php',
    'line' => 1861,
    'function' => '_comments',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 259,
    'function' => 'comments',
    'class' => 'IPS\\forums\\_Topic',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT id, content_id FROM `core_rc_index` WHERE class='IPS\forums\Topic\Post' AND ( content_id IN(505651,505654,505656) )

SELECT id, content_id FROM `core_rc_index` WHERE class='IPS\forums\Topic\Post' AND ( content_id IN(505651,505654,505656) )

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 3964,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/sources/Topic/Topic.php',
    'line' => 1861,
    'function' => '_comments',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 259,
    'function' => 'comments',
    'class' => 'IPS\\forums\\_Topic',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT COUNT(*) FROM `core_follow` WHERE follow_app='forums' AND follow_area='forum' AND follow_rel_id=69

SELECT COUNT(*) FROM `core_follow` WHERE follow_app='forums' AND follow_area='forum' AND follow_rel_id=69

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Patterns/ActiveRecord.php',
    'line' => 656,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Patterns/ActiveRecord.php',
    'line' => 676,
    'function' => '_followers',
    'class' => 'IPS\\Patterns\\_ActiveRecord',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7295,
    'function' => '_followersCount',
    'class' => 'IPS\\Patterns\\_ActiveRecord',
    'type' => '::',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 421,
    'function' => 'containerFollowerCount',
    'class' => 'IPS\\Content\\_Item',
    'type' => '::',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT AVG(rating) FROM `core_ratings` WHERE class='IPS\forums\Topic' AND item_id=60351

SELECT AVG(rating) FROM `core_ratings` WHERE class='IPS\forums\Topic' AND item_id=60351

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7684,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 427,
    'function' => 'averageRating',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT COUNT(*) FROM `core_follow` WHERE follow_app='forums' AND follow_area='topic' AND follow_rel_id=60351

SELECT COUNT(*) FROM `core_follow` WHERE follow_app='forums' AND follow_area='topic' AND follow_rel_id=60351

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Patterns/ActiveRecord.php',
    'line' => 656,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7237,
    'function' => '_followers',
    'class' => 'IPS\\Patterns\\_ActiveRecord',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7251,
    'function' => 'followers',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/Theme.php(847) : eval()\'d code',
    'line' => 2194,
    'function' => 'followersCount',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/SandboxedTemplate.php',
    'line' => 61,
    'function' => 'topic',
    'class' => 'IPS\\Theme\\class_forums_front_topics',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 437,
    'function' => '__call',
    'class' => 'IPS\\Theme\\_SandboxedTemplate',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  13 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  14 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT rating FROM `core_ratings` WHERE class='IPS\forums\Topic' AND item_id=60351 AND `member` IS NULL

SELECT rating FROM `core_ratings` WHERE class='IPS\forums\Topic' AND item_id=60351 AND `member` IS NULL

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7642,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Item.php',
    'line' => 7774,
    'function' => 'memberRating',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/Theme.php(847) : eval()\'d code',
    'line' => 2775,
    'function' => 'rating',
    'class' => 'IPS\\Content\\_Item',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/SandboxedTemplate.php',
    'line' => 61,
    'function' => 'topic',
    'class' => 'IPS\\Theme\\class_forums_front_topics',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 437,
    'function' => '__call',
    'class' => 'IPS\\Theme\\_SandboxedTemplate',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Controller.php',
    'line' => 96,
    'function' => 'manage',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Content/Controller.php',
    'line' => 50,
    'function' => 'execute',
    'class' => 'IPS\\Dispatcher\\_Controller',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/forums/modules/front/forums/topic.php',
    'line' => 39,
    'function' => 'execute',
    'class' => 'IPS\\Content\\_Controller',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 152,
    'function' => 'execute',
    'class' => 'IPS\\forums\\modules\\front\\forums\\_topic',
    'type' => '->',
  ),
  13 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT * FROM `core_widget_areas` WHERE app='forums' AND module='forums' AND controller='topic'

SELECT * FROM `core_widget_areas` WHERE app='forums' AND module='forums' AND controller='topic'

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 500,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 154,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT * FROM `portal_blocks` WHERE `block_id`=3

SELECT * FROM `portal_blocks` WHERE `block_id`=3

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 355,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Patterns/ActiveRecord.php',
    'line' => 138,
    'function' => 'first',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/applications/portal/widgets/portalBlock.php',
    'line' => 110,
    'function' => 'load',
    'class' => 'IPS\\Patterns\\_ActiveRecord',
    'type' => '::',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Widget/Widget.php',
    'line' => 803,
    'function' => 'render',
    'class' => 'IPS\\portal\\widgets\\_portalBlock',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/Theme.php(847) : eval()\'d code',
    'line' => 16518,
    'function' => '__toString',
    'class' => 'IPS\\_Widget',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/SandboxedTemplate.php',
    'line' => 61,
    'function' => 'widgetContainer',
    'class' => 'IPS\\Theme\\class_core_front_global',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/Theme.php(847) : eval()\'d code',
    'line' => 6357,
    'function' => '__call',
    'class' => 'IPS\\Theme\\_SandboxedTemplate',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Theme/SandboxedTemplate.php',
    'line' => 61,
    'function' => 'globalTemplate',
    'class' => 'IPS\\Theme\\class_core_front_global',
    'type' => '->',
  ),
  11 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 172,
    'function' => '__call',
    'class' => 'IPS\\Theme\\_SandboxedTemplate',
    'type' => '->',
  ),
  12 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Standard.php',
    'line' => 112,
    'function' => 'finish',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
  13 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 597,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Standard',
    'type' => '->',
  ),
  14 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 154,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  15 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(read): SELECT word_key, word_default, word_custom FROM `core_sys_lang_words` WHERE lang_id=1 AND word_key IN('rss_export_title_1','rss_export_title_2','module__forums_forums','forums_forum_7','forums_forum_69','search_contextual_item_topic','search_contextual_item_forums','submit_reply','core_pfield_3','core_pfield_15','core_pfield_12','react_blurb','sign_in_title','follow_sign_in','followers_tooltip','who_follows_this','followers','byline_itemprop','f_years_short','_date_last_year_long','in','find_tagged_content','recommended_posts','reputation_badge_tooltip','report_submit_success','report_post','report_content','share_this_post','date_started','link_to_post','share_externally','lin_text','twitter_text','facebook_text','reddit_text','digg_text','delicious_text','pinterest_text','date_replied','reaction_title_1','date_replied','_date_last_year_long','date_edited','edited_lc','teaser_title_reg','teaser_desc_reg','teaser_account','teaser_account_desc','teaser_account_button','teaser_signin','teaser_signin_desc','teaser_signin_button','go_to_forum','go_back_to_forum','jump_to_content_desc','jump_to_content','sign_in','login','username_or_email','password','remember_me','remember_me_desc','signin_anonymous','forgotten_password','sign_up','search_placeholder','class','everywhere','forums_topic_pl','more_options','andOr','search_and','search_or','searchIn','titles_and_body','titles_only','frontnavigation_portal','frontnavigation_forums','frontnavigation_blogs','frontnavigation_downloads','guidelines','staff','leaderboard_title','more','menu_item_2','all_activity','search','menu_item_15','menu_item_16','menu_item_17','menu_item_27','menu_item_18','menu_item_19','home','block_portalBlock','widget_blank_or_no_context','language','default','privacy','terms_of_use','help','copyright_line_value','mobile_menu_back','add','terms_privacy','cookies_message','guest_terms_title','guest_terms_bar_text_value','guest_terms_close') and word_js=0

SELECT word_key, word_default, word_custom FROM `core_sys_lang_words` WHERE lang_id=1 AND word_key IN('rss_export_title_1','rss_export_title_2','module__forums_forums','forums_forum_7','forums_forum_69','search_contextual_item_topic','search_contextual_item_forums','submit_reply','core_pfield_3','core_pfield_15','core_pfield_12','react_blurb','sign_in_title','follow_sign_in','followers_tooltip','who_follows_this','followers','byline_itemprop','f_years_short','_date_last_year_long','in','find_tagged_content','recommended_posts','reputation_badge_tooltip','report_submit_success','report_post','report_content','share_this_post','date_started','link_to_post','share_externally','lin_text','twitter_text','facebook_text','reddit_text','digg_text','delicious_text','pinterest_text','date_replied','reaction_title_1','date_replied','_date_last_year_long','date_edited','edited_lc','teaser_title_reg','teaser_desc_reg','teaser_account','teaser_account_desc','teaser_account_button','teaser_signin','teaser_signin_desc','teaser_signin_button','go_to_forum','go_back_to_forum','jump_to_content_desc','jump_to_content','sign_in','login','username_or_email','password','remember_me','remember_me_desc','signin_anonymous','forgotten_password','sign_up','search_placeholder','class','everywhere','forums_topic_pl','more_options','andOr','search_and','search_or','searchIn','titles_and_body','titles_only','frontnavigation_portal','frontnavigation_forums','frontnavigation_blogs','frontnavigation_downloads','guidelines','staff','leaderboard_title','more','menu_item_2','all_activity','search','menu_item_15','menu_item_16','menu_item_17','menu_item_27','menu_item_18','menu_item_19','home','block_portalBlock','widget_blank_or_no_context','language','default','privacy','terms_of_use','help','copyright_line_value','mobile_menu_back','add','terms_privacy','cookies_message','guest_terms_title','guest_terms_bar_text_value','guest_terms_close') and word_js=0

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 373,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Select.php',
    'line' => 436,
    'function' => 'runQuery',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Lang/Lang.php',
    'line' => 1474,
    'function' => 'rewind',
    'class' => 'IPS\\Db\\_Select',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Output/Output.php',
    'line' => 731,
    'function' => 'parseOutputForDisplay',
    'class' => 'IPS\\_Lang',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 172,
    'function' => 'sendOutput',
    'class' => 'IPS\\_Output',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Standard.php',
    'line' => 112,
    'function' => 'finish',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 597,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Standard',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 154,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(write): REPLACE INTO `core_output_cache` ( `cache_key`, `cache_value`, `cache_meta`, `cache_expire` ) VALUES ( 'page_7296b43d0ee81f88a63e3d2cf4bd96e8_1_', '
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
	<head>
		<title>Restringir a um IP - PHP - Portugal-a-Programar</title>
		
		<!--[if lt IE 9]>
			<link rel="stylesheet" type="text/css" href="https://www.portugal-a-programar.pt/public/themes/css_built_2/5e61784858ad3c11f00b5706d12afe52_ie8.css.7858791dab0cfd699ed161354bd4717e.css">
		    <script src="//www.portugal-a-programar.pt/applications/core/interface/html5shiv/html5shiv.js"></script>
		<![endif]-->
        
		
<meta charset="utf-8">

	<meta name="viewport" content="width=device-width, initial-scale=1">


	
	
		<meta property="og:image" content="https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg">
	


	<meta name="twitter:card" content="summary_large_image" />


	
		<meta name="twitter:site" content="@pt_programar" />
	


	
		
			
				<meta property="og:title" content="Restringir a um IP">
			
		
	

	
		
			
				<meta property="og:type" content="object">
			
		
	

	
		
			
				<meta property="og:url" content="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/">
			
		
	

	
		
			
				<meta name="description" content="Boas pessoal, a minha questão é simples: Tenho uma página de administração e gostaria que apenas o meu IP conseguisse acedê-la, os outros seriam reencaminhados para o 404. Que código tenho de adicionar'{"code":200,"contentType":"text\/html","httpHeaders":{"X-IPS-Cached-Response":"Fri, 29 May 2020 18:36:29 GMT"},"lastUpdated":1590777389}'">
			
		
	

	
		
			
				<meta property="og:description" content="Boas pessoal, a minha questão é simples: Tenho uma página de administração e gostaria que apenas o meu IP conseguisse acedê-la, os outros seriam reencaminhados para o 404. Que código tenho de adicionar1590777689">
			
		
	

	
		
			
				<meta property="og:updated_time" content="2013-05-02T20:13:21Z">
			
		
	

	
		
			
				<meta name="keywords" content="php">
			
		
	

	
		
			
				<meta property="og:site_name" content="Portugal-a-Programar">
			
		
	

	
		
			
				<meta property="og:locale" content="en_US">
			
		
	


	
		<link rel="canonical" href="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/" />
	

<link rel="alternate" type="application/rss+xml" title="Topics" href="https://www.portugal-a-programar.pt/rss/1-topics.xml/" /><link rel="alternate" type="application/rss+xml" title="Blog Posts" href="https://www.portugal-a-programar.pt/rss/2-blog-posts.xml/" />


<link rel="manifest" href="https://www.portugal-a-programar.pt/manifest.webmanifest/" crossorigin="use-credentials">
<meta name="msapplication-config" content="https://www.portugal-a-programar.pt/browserconfig.xml/">
<meta name="msapplication-starturl" content="">
<meta name="application-name" content="Portugal-a-Programar">
<meta name="apple-mobile-web-app-title" content="Portugal-a-Programar">

	<meta name="theme-color" content="#ffffff">


	<meta name="msapplication-TileColor" content="#ffffff">





	

	
		
			<link rel="icon" sizes="36x36" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-36x36.png">
		
	

	
		
			<link rel="icon" sizes="48x48" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-48x48.png">
		
	

	
		
			<link rel="icon" sizes="72x72" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-72x72.png">
		
	

	
		
			<link rel="icon" sizes="96x96" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-96x96.png">
		
	

	
		
			<link rel="icon" sizes="144x144" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-144x144.png">
		
	

	
		
			<link rel="icon" sizes="192x192" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-192x192.png">
		
	

	
		
			<link rel="icon" sizes="256x256" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-256x256.png">
		
	

	
		
			<link rel="icon" sizes="384x384" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-384x384.png">
		
	

	
		
			<link rel="icon" sizes="512x512" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-512x512.png">
		
	

	
		
			<meta name="msapplication-square70x70logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-square70x70logo.png"/>
		
	

	
		
			<meta name="msapplication-TileImage" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-TileImage.png"/>
		
	

	
		
			<meta name="msapplication-square150x150logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-square150x150logo.png"/>
		
	

	
		
			<meta name="msapplication-wide310x150logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-wide310x150logo.png"/>
		
	

	
		
			<meta name="msapplication-square310x310logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-square310x310logo.png"/>
		
	

	
		
			
				<link rel="apple-touch-icon" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-57x57.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="60x60" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-60x60.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="72x72" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-72x72.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="76x76" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-76x76.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="114x114" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-114x114.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="120x120" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-120x120.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="144x144" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-144x144.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="152x152" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-152x152.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="180x180" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-180x180.png">
			
		
	

		




	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/341e4a57816af3ba440d891ca87450ff_framework.css.6594b128d35fcd49b112973c44c4a35d.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/05e81b71abe4f22d6eb8d1a929494829_responsive.css.b7c44f3d5e0a67ee243c6a1e8ac29e92.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/20446cf2d164adcc029377cb04d43d17_flags.css.5351285f9a70f71f39363155f2c234ce.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/90eb5adf50a8c640f633d47fd7eb1778_core.css.233417094f247a5e0b17d9b3bfeb4a34.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/5a0da001ccc2200dc5625c3f3934497d_core_responsive.css.755e9a2eb19e44c93f93f6f2b6614e50.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/b621d4e5c4a59bf8393b9f13e3136a2b_query_log.css.e7859b73ee9fc9ff9f6b76fe79da5e08.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/62e269ced0fdab7e30e026f1d30ae516_forums.css.b08c5ee368357283fb861f8eb02f446d.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/76e62c573090645fb99a15a363d8620e_forums_responsive.css.e457019441b7ef8e58709419e219aa1e.css?v=90cf7938ca\' media=\'all\'>




<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/258adbb6e4f3e83cd3b355f84e3fa002_custom.css.6e339d5b60c55d7382d2f66b90fa46da.css?v=90cf7938ca\' media=\'all\'>



		
		

	</head>
	<body class=\'ipsApp ipsApp_front ipsJS_none ipsClearfix\' data-controller=\'core.front.core.app\' data-message="" data-pageApp=\'forums\' data-pageLocation=\'front\' data-pageModule=\'forums\' data-pageController=\'topic\' data-pageID=\'60351\'>
		<a href=\'#elContent\' class=\'ipsHide\' title=\'Go to main content on this page\' accesskey=\'m\'>Jump to content</a>
		<div id=\'ipsLayout_header\' class=\'ipsClearfix\'>
			





			
<ul id=\'elMobileNav\' class=\'ipsList_inline ipsResponsive_hideDesktop ipsResponsive_block\' data-controller=\'core.front.core.mobileNav\'>
	
		
			
			
				
				
			
				
				
			
				
					<li id=\'elMobileBreadcrumb\'>
						<a href=\'https://www.portugal-a-programar.pt/forums/forum/69-php/\'>
							<span>PHP</span>
						</a>
					</li>
				
				
			
				
				
			
		
	
	
	
	<li >
		<a data-action="defaultStream" class=\'ipsType_light\'  href=\'https://www.portugal-a-programar.pt/discover/\'><i class=\'icon-newspaper\'></i></a>
	</li>

	

	
		<li class=\'ipsJS_show\'>
			<a href=\'https://www.portugal-a-programar.pt/search/\'><i class=\'fa fa-search\'></i></a>
		</li>
	
	<li data-ipsDrawer data-ipsDrawer-drawerElem=\'#elMobileDrawer\'>
		<a href=\'#\'>
			
			
				
			
			
			
			<i class=\'fa fa-navicon\'></i>
		</a>
	</li>
</ul>
			<header>
				<div class=\'ipsLayout_container\'>
					


<a href=\'https://www.portugal-a-programar.pt/\' id=\'elLogo\' accesskey=\'1\'><img src="https://www.portugal-a-programar.pt/public/themes/monthly_2018_01/pap-banner.png.692a62d6d249b310187aebab094ee0b8.png" alt=\'Portugal-a-Programar\'></a>

					

	<ul id=\'elUserNav\' class=\'ipsList_inline cSignedOut ipsClearfix ipsResponsive_hidePhone ipsResponsive_block\'>
		

	
		<li class=\'cUserNav_icon\'>
			<a href=\'https://twitter.com/pt_programar\' target=\'_blank\' class=\'cShareLink cShareLink_twitter\' rel=\'noopener noreferrer\'><i class=\'fa fa-twitter\'></i></a>
		</li>
	
		<li class=\'cUserNav_icon\'>
			<a href=\'https://www.facebook.com/portugal.programar\' target=\'_blank\' class=\'cShareLink cShareLink_facebook\' rel=\'noopener noreferrer\'><i class=\'fa fa-facebook\'></i></a>
		</li>
	

		<li id=\'elSignInLink\'>
			<a href=\'https://www.portugal-a-programar.pt/login/\' data-ipsMenu-closeOnClick="false" data-ipsMenu id=\'elUserSignIn\'>
				Existing user? Sign In  <i class=\'fa fa-caret-down\'></i>
			</a>
			
<div id=\'elUserSignIn_menu\' class=\'ipsMenu ipsMenu_auto ipsHide\'>
	<form accept-charset=\'utf-8\' method=\'post\' action=\'https://www.portugal-a-programar.pt/login/\' data-controller="core.global.core.login">
		<input type="hidden" name="csrfKey" value="{{csrfKey}}">
		<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8=">
		<div data-role="loginForm">
			
			
			
				
<div class="ipsPad ipsForm ipsForm_vertical">
	<h4 class="ipsType_sectionHead">Sign In</h4>
	<br><br>
	<ul class=\'ipsList_reset\'>
		<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
			
			
				<input type="text" placeholder="Display Name or Email Address" name="auth" autocomplete="email">
			
		</li>
		<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
			<input type="password" placeholder="Password" name="password" autocomplete="current-password">
		</li>
		<li class="ipsFieldRow ipsFieldRow_checkbox ipsClearfix">
			<span class="ipsCustomInput">
				<input type="checkbox" name="remember_me" id="remember_me_checkbox" value="1" checked aria-checked="true">
				<span></span>
			</span>
			<div class="ipsFieldRow_content">
				<label class="ipsFieldRow_label" for="remember_me_checkbox">Remember me</label>
				<span class="ipsFieldRow_desc">Not recommended on shared computers</span>
			</div>
		</li>
		
			<li class="ipsFieldRow ipsFieldRow_checkbox ipsClearfix">
				<span class="ipsCustomInput">
					<input type="checkbox" name="anonymous" id="anonymous_checkbox" value="1" aria-checked="false">
					<span></span>
				</span>
				<div class="ipsFieldRow_content">
					<label class="ipsFieldRow_label" for="anonymous_checkbox">Sign in anonymously</label>
				</div>
			</li>
		
		<li class="ipsFieldRow ipsFieldRow_fullWidth">
			<br>
			<button type="submit" name="_processLogin" value="usernamepassword" class="ipsButton ipsButton_primary ipsButton_small" id="elSignIn_submit">Sign In</button>
			
				<br>
				<p class="ipsType_right ipsType_small">
					
						<a href=\'https://www.portugal-a-programar.pt/lostpassword/\' data-ipsDialog data-ipsDialog-title=\'Forgot your password?\'>
					
					Forgot your password?</a>
				</p>
			
		</li>
	</ul>
</div>
			
		</div>
	</form>
</div>
		</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/register/\'  id=\'elRegisterButton\' class=\'ipsButton ipsButton_normal ipsButton_primary\'>Sign Up</a>
				
			</li>
		
	</ul>

				</div>
			</header>
			

	<nav data-controller=\'core.front.core.navBar\' class=\'\'>
		<div class=\'ipsNavBar_primary ipsLayout_container  ipsClearfix\'>
			

	<div id="elSearchWrapper" class="ipsPos_right">
		<div id=\'elSearch\' class=\'\' data-controller=\'core.front.core.quickSearch\'>
			<form accept-charset=\'utf-8\' action=\'//www.portugal-a-programar.pt/search/?do=quicksearch\' method=\'post\'>
				<input type=\'search\' id=\'elSearchField\' placeholder=\'Search...\' name=\'q\' autocomplete=\'off\'>
				<button class=\'cSearchSubmit\' type="submit"><i class="fa fa-search"></i></button>
				<div id="elSearchExpanded">
					<div class="ipsMenu_title">
						Search In
					</div>
					<ul class="ipsSideMenu_list ipsSideMenu_withRadios ipsSideMenu_small ipsType_normal" data-ipsSideMenu data-ipsSideMenu-type="radio" data-ipsSideMenu-responsive="false" data-role="searchContexts">
						<li>
							<span class=\'ipsSideMenu_item ipsSideMenu_itemActive\' data-ipsMenuValue=\'all\'>
								<input type="radio" name="type" value="all" checked id="elQuickSearchRadio_type_all">
								<label for=\'elQuickSearchRadio_type_all\' id=\'elQuickSearchRadio_type_all_label\'>Everywhere</label>
							</span>
						</li>
						
						
							<li>
								<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'forums_topic\'>
									<input type="radio" name="type" value="forums_topic" id="elQuickSearchRadio_type_forums_topic">
									<label for=\'elQuickSearchRadio_type_forums_topic\' id=\'elQuickSearchRadio_type_forums_topic_label\'>Topics</label>
								</span>
							</li>
						
						
							
								<li>
									<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'contextual_{"type":"forums_topic","nodes":69}\'>
										<input type="radio" name="type" value=\'contextual_{"type":"forums_topic","nodes":69}\' id=\'elQuickSearchRadio_type_contextual_e5d7146176d36b04fab7799bb90edc27\'>
										<label for=\'elQuickSearchRadio_type_contextual_e5d7146176d36b04fab7799bb90edc27\' id=\'elQuickSearchRadio_type_contextual_e5d7146176d36b04fab7799bb90edc27_label\'>This Forum</label>
									</span>
								</li>
							
								<li>
									<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'contextual_{"type":"forums_topic","item":60351}\'>
										<input type="radio" name="type" value=\'contextual_{"type":"forums_topic","item":60351}\' id=\'elQuickSearchRadio_type_contextual_71e961d57b60790dc50820a0a00c274f\'>
										<label for=\'elQuickSearchRadio_type_contextual_71e961d57b60790dc50820a0a00c274f\' id=\'elQuickSearchRadio_type_contextual_71e961d57b60790dc50820a0a00c274f_label\'>This Topic</label>
									</span>
								</li>
							
						
						<li data-role="showMoreSearchContexts">
							<span class=\'ipsSideMenu_item\' data-action="showMoreSearchContexts" data-exclude="forums_topic">
								More options...
							</span>
						</li>
					</ul>
					<div class="ipsMenu_title">
						Find results that contain...
					</div>
					<ul class=\'ipsSideMenu_list ipsSideMenu_withRadios ipsSideMenu_small ipsType_normal\' role="radiogroup" data-ipsSideMenu data-ipsSideMenu-type="radio" data-ipsSideMenu-responsive="false" data-filterType=\'andOr\'>
						
							<li>
								<span class=\'ipsSideMenu_item ipsSideMenu_itemActive\' data-ipsMenuValue=\'and\'>
									<input type="radio" name="search_and_or" value="and" checked id="elRadio_andOr_and">
									<label for=\'elRadio_andOr_and\' id=\'elField_andOr_label_and\'><em>All</em> of my search term words</label>
								</span>
							</li>
						
							<li>
								<span class=\'ipsSideMenu_item \' data-ipsMenuValue=\'or\'>
									<input type="radio" name="search_and_or" value="or"  id="elRadio_andOr_or">
									<label for=\'elRadio_andOr_or\' id=\'elField_andOr_label_or\'><em>Any</em> of my search term words</label>
								</span>
							</li>
						
					</ul>
					<div class="ipsMenu_title">
						Find results in...
					</div>
					<ul class=\'ipsSideMenu_list ipsSideMenu_withRadios ipsSideMenu_small ipsType_normal\' role="radiogroup" data-ipsSideMenu data-ipsSideMenu-type="radio" data-ipsSideMenu-responsive="false" data-filterType=\'searchIn\'>
						<li>
							<span class=\'ipsSideMenu_item ipsSideMenu_itemActive\' data-ipsMenuValue=\'all\'>
								<input type="radio" name="search_in" value="all" checked id="elRadio_searchIn_and">
								<label for=\'elRadio_searchIn_and\' id=\'elField_searchIn_label_all\'>Content titles and body</label>
							</span>
						</li>
						<li>
							<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'titles\'>
								<input type="radio" name="search_in" value="titles" id="elRadio_searchIn_titles">
								<label for=\'elRadio_searchIn_titles\' id=\'elField_searchIn_label_titles\'>Content titles only</label>
							</span>
						</li>
					</ul>
				</div>
			</form>
		</div>
	</div>

			<ul data-role="primaryNavBar" class=\'ipsResponsive_showDesktop ipsResponsive_block\'>
				


	
		
		
			
		
		<li class=\'ipsNavBar_active\' data-active id=\'elNavSecondary_25\' data-role="navBarItem" data-navApp="portal" data-navExt="Portal">
			
			
				<a href="https://www.portugal-a-programar.pt/portal/"  data-navItem-id="25" data-navDefault>
					Home
				</a>
			
			
				<ul class=\'ipsNavBar_secondary \' data-role=\'secondaryNavBar\'>
					


	
		
		
			
		
		<li class=\'ipsNavBar_active\' data-active id=\'elNavSecondary_9\' data-role="navBarItem" data-navApp="forums" data-navExt="Forums">
			
			
				<a href="https://www.portugal-a-programar.pt/forums/"  data-navItem-id="9" data-navDefault>
					Forums
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_8\' data-role="navBarItem" data-navApp="blog" data-navExt="Blogs">
			
			
				<a href="https://www.portugal-a-programar.pt/blogs/"  data-navItem-id="8" >
					Blogs
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_10\' data-role="navBarItem" data-navApp="downloads" data-navExt="Downloads">
			
			
				<a href="https://www.portugal-a-programar.pt/files/"  data-navItem-id="10" >
					Downloads
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_11\' data-role="navBarItem" data-navApp="core" data-navExt="Guidelines">
			
			
				<a href="https://www.portugal-a-programar.pt/guidelines/"  data-navItem-id="11" >
					Guidelines
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_12\' data-role="navBarItem" data-navApp="core" data-navExt="StaffDirectory">
			
			
				<a href="https://www.portugal-a-programar.pt/staff/"  data-navItem-id="12" >
					Staff
				</a>
			
			
		</li>
	
	

	
	

	
		
		
		<li  id=\'elNavSecondary_26\' data-role="navBarItem" data-navApp="core" data-navExt="Leaderboard">
			
			
				<a href="https://www.portugal-a-programar.pt/leaderboard/"  data-navItem-id="26" >
					Leaderboard
				</a>
			
			
		</li>
	
	

					<li class=\'ipsHide\' id=\'elNavigationMore_25\' data-role=\'navMore\'>
						<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_25\' id=\'elNavigationMore_25_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
						<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_25_dropdown_menu\' data-role=\'moreDropdown\'></ul>
					</li>
				</ul>
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_2\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.portugal-a-programar.pt/discover/"  data-navItem-id="2" >
					Activity
				</a>
			
			
				<ul class=\'ipsNavBar_secondary ipsHide\' data-role=\'secondaryNavBar\'>
					


	
		
		
		<li  id=\'elNavSecondary_3\' data-role="navBarItem" data-navApp="core" data-navExt="AllActivity">
			
			
				<a href="https://www.portugal-a-programar.pt/discover/"  data-navItem-id="3" >
					All Activity
				</a>
			
			
		</li>
	
	

	
	

	
	

	
	

	
		
		
		<li  id=\'elNavSecondary_7\' data-role="navBarItem" data-navApp="core" data-navExt="Search">
			
			
				<a href="https://www.portugal-a-programar.pt/search/"  data-navItem-id="7" >
					Search
				</a>
			
			
		</li>
	
	

					<li class=\'ipsHide\' id=\'elNavigationMore_2\' data-role=\'navMore\'>
						<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_2\' id=\'elNavigationMore_2_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
						<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_2_dropdown_menu\' data-role=\'moreDropdown\'></ul>
					</li>
				</ul>
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_15\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/" target=\'_blank\' rel="noopener" data-navItem-id="15" >
					Revista PROGRAMAR
				</a>
			
			
				<ul class=\'ipsNavBar_secondary ipsHide\' data-role=\'secondaryNavBar\'>
					


	
		
		
		<li  id=\'elNavSecondary_16\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/edicoes/" target=\'_blank\' rel="noopener" data-navItem-id="16" >
					Editions
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_17\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/participar/" target=\'_blank\' rel="noopener" data-navItem-id="17" >
					Contribute
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_27\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/lists/?p=subscribe&id=1" target=\'_blank\' rel="noopener" data-navItem-id="27" >
					Newsletter
				</a>
			
			
		</li>
	
	

					<li class=\'ipsHide\' id=\'elNavigationMore_15\' data-role=\'navMore\'>
						<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_15\' id=\'elNavigationMore_15_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
						<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_15_dropdown_menu\' data-role=\'moreDropdown\'></ul>
					</li>
				</ul>
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_18\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://wiki.portugal-a-programar.pt/" target=\'_blank\' rel="noopener" data-navItem-id="18" >
					Wiki
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_19\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://chat.ptnet.org/p@p" target=\'_blank\' rel="noopener" data-navItem-id="19" >
					IRC
				</a>
			
			
		</li>
	
	

				<li class=\'ipsHide\' id=\'elNavigationMore\' data-role=\'navMore\'>
					<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore\' id=\'elNavigationMore_dropdown\'>More</a>
					<ul class=\'ipsNavBar_secondary ipsHide\' data-role=\'secondaryNavBar\'>
						<li class=\'ipsHide\' id=\'elNavigationMore_more\' data-role=\'navMore\'>
							<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_more\' id=\'elNavigationMore_more_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
							<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_more_dropdown_menu\' data-role=\'moreDropdown\'></ul>
						</li>
					</ul>
				</li>
			</ul>
		</div>
	</nav>

		</div>
		<main id=\'ipsLayout_body\' class=\'ipsLayout_container\'>
			<div id=\'ipsLayout_contentArea\'>
				<div id=\'ipsLayout_contentWrapper\'>
					
<nav class=\'ipsBreadcrumb ipsBreadcrumb_top ipsFaded_withHover\'>
	

	<ul class=\'ipsList_inline ipsPos_right\'>
		
		<li >
			<a data-action="defaultStream" class=\'ipsType_light \'  href=\'https://www.portugal-a-programar.pt/discover/\'><i class=\'icon-newspaper\'></i> <span>All Activity</span></a>
		</li>
		
	</ul>

	<ul data-role="breadcrumbList">
		<li>
			<a title="Home" href=\'https://www.portugal-a-programar.pt/\'>
				<span><i class=\'fa fa-home\'></i> Home <i class=\'fa fa-angle-right\'></i></span>
			</a>
		</li>
		
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/\'>
						<span>Forums <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/7-desenvolvimento-orientado-para-web/\'>
						<span>Desenvolvimento Orientado para Web <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/69-php/\'>
						<span>PHP <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'.\'><span>Restringir a um IP</span></a>
				
			</li>
		
	</ul>
</nav>
					
					<div id=\'ipsLayout_mainArea\'>
						<a id=\'elContent\'></a>
						
						
						
						

	




	<div class=\'cWidgetContainer \'  data-role=\'widgetReceiver\' data-orientation=\'horizontal\' data-widgetArea=\'header\'>
		<ul class=\'ipsList_reset\'>
			
				
					
					<li class=\'ipsWidget ipsWidget_horizontal ipsBox ipsWidgetHide ipsHide \' data-blockID=\'app_portal_portalBlock_os7jqqx1x\' data-blockConfig="true" data-blockTitle="Portal Blocks" data-blockErrorMessage="This block cannot be shown. This could be because it needs configuring, is unable to show on this page, or will show after reloading this page." data-controller=\'core.front.widgets.block\'></li>
				
			
		</ul>
	</div>

						






<div class="ipsPageHeader ipsClearfix">
	
		<div class="ipsPos_right ipsResponsive_noFloat ipsResponsive_hidePhone">
			

<div data-followApp=\'forums\' data-followArea=\'topic\' data-followID=\'60351\' data-controller=\'core.front.core.followButton\'>
	
		<span class=\'ipsType_light ipsType_blendLinks ipsResponsive_hidePhone ipsResponsive_inline\'><i class=\'fa fa-info-circle\'></i> <a href=\'https://www.portugal-a-programar.pt/login/\' title=\'Go to the sign in page\'>Sign in to follow this</a>  </span>
	
	

	<div class="ipsFollow ipsPos_middle ipsButton ipsButton_link ipsButton_verySmall " data-role="followButton">
		
			<a href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' class=\'ipsType_blendLinks ipsType_noUnderline\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>Followers</a>
			<a class=\'ipsCommentCount\' href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>1</a>
		
	</div>

</div>
		</div>
		<div class="ipsPos_right ipsResponsive_noFloat ipsResponsive_hidePhone">
			



		</div>
		
	
	<div class="ipsPhotoPanel ipsPhotoPanel_small ipsPhotoPanel_notPhone ipsClearfix">
		

	<span class=\'ipsUserPhoto ipsUserPhoto_small \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

		<div>
			<h1 class="ipsType_pageTitle ipsContained_container">
				

				
				
					<span class="ipsType_break ipsContained">


	 


						<span>Restringir a um IP</span>
					</span>
				
			</h1>
			
			<p class="ipsType_reset ipsType_blendLinks ipsSpacer_bottom ipsSpacer_half">
				<span class="ipsType_normal">
				
					By 

Mark,  <span class="ipsType_light"><time datetime=\'2013-05-02T19:52:09Z\' title=\'05/02/2013 07:52  PM\' data-short=\'7 yr\'>May 2, 2013</time> in <a href="https://www.portugal-a-programar.pt/forums/forum/69-php/">PHP</a></span>
				
				</span>
				<br></p>
			
				


	
		<ul class=\'ipsTags ipsList_inline \' >
			
				
					


<li >
	<a href="https://www.portugal-a-programar.pt/tags/php/" class=\'ipsTag\' title="Find other content tagged with \'php\'" rel="tag"><span>php</span></a>
	
</li>
				
			
			
		</ul>
		
	

			
		</div>
	</div>
</div>








<div class="ipsClearfix">
	
		<div class="ipsPos_left ipsType_light ipsResponsive_hidePhone">
			
			
<div  class=\'ipsClearfix ipsRating  ipsRating_veryLarge\'>
	
	<ul class=\'ipsRating_collective\'>
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
	</ul>
</div>
		</div>
	
	
	<ul class="ipsToolList ipsToolList_horizontal ipsClearfix ipsSpacer_both ipsResponsive_hidePhone">
		
		
		
	</ul>
</div>

<div data-controller="core.front.core.commentFeed,forums.front.topic.view, core.front.core.ignoredComments" data-autopoll data-baseurl="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/" data-lastpage data-feedid="topic-60351" class="cTopic ipsClear ipsSpacer_top">
	
			
	

	

<div data-controller=\'core.front.core.recommendedComments\' data-url=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?recommended=comments\' class=\'ipsAreaBackground ipsPad ipsBox ipsBox_transparent ipsSpacer_bottom ipsRecommendedComments ipsHide\'>
	<div data-role="recommendedComments">
		<h2 class=\'ipsType_sectionHead ipsType_large\'>Recommended Posts</h2>
		
	</div>
</div>
	
	<div id="elPostFeed" data-role="commentFeed" data-controller="core.front.core.moderation" >
		<form action="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?csrfKey={{csrfKey}}&do=multimodComment" method="post" data-ipspageaction data-role="moderationTools">
			
			
				
					
					
					




<a id="comment-505651"></a>
<article  id="elComment_505651" class="cPost ipsBox  ipsComment  ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone   ">
	

	<div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block">
		<h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line">
			

Mark
			<span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
		</h3>
		<div class="cAuthorPane_photo">
			

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

		</div>
	</div>
	<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break">
<strong>

Mark
			</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
</h3>

		<ul class="cAuthorPane_info ipsList_reset">
			
			
			<li class="cAuthorPane_photo">
				

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

			</li>
			
			
				<li>

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</li>
				
				
				

			
		</ul></aside><div class="ipsColumn ipsColumn_fluid">
		

<div id=\'comment-505651_wrap\' data-controller=\'core.front.core.comment\' data-commentApp=\'forums\' data-commentType=\'forums\' data-commentID="505651" data-quoteData=\'{"userid":28027,"username":"Mark","timestamp":1367524329,"contentapp":"forums","contenttype":"forums","contentid":60351,"contentclass":"forums_Topic","contentcommentid":505651}\' class=\'ipsComment_content ipsType_medium  ipsFaded_withHover\'>
	

	<div class=\'ipsComment_meta ipsType_light\'>
		<div class=\'ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks\'>
			<ul class=\'ipsList_inline ipsComment_tools\'>
				
					<li><a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=reportComment&comment=505651\' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size=\'medium\' data-ipsDialog-flashMessage=\'Thanks for your report.\' data-ipsDialog-title="Report post" data-action=\'reportComment\' title=\'Report this content\' class=\'ipsFaded ipsFaded_more\'><span class=\'ipsResponsive_showPhone ipsResponsive_inline\'><i class=\'fa fa-flag\'></i></span><span class=\'ipsResponsive_hidePhone ipsResponsive_inline\'>Report post</span></a></li>
				
				
				
					<li><a class=\'ipsType_blendLinks\' href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/\' data-ipsTooltip title=\'Share this post\' data-ipsMenu data-ipsMenu-closeOnClick=\'false\' id=\'elSharePost_505651\' data-role=\'shareComment\'><i class=\'fa fa-share-alt\'></i></a></li>
				
				
			</ul>
		</div>

		<div class=\'ipsType_reset\'>
			<a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505651\' class=\'ipsType_blendLinks\'>Posted <time datetime=\'2013-05-02T19:52:09Z\' title=\'05/02/2013 07:52  PM\' data-short=\'7 yr\'>May 2, 2013</time></a>
			<span class=\'ipsResponsive_hidePhone\'>
				
				
			</span>
		</div>
	</div>

	


	<div class=\'cPost_contentWrap ipsPad\'>
		
		<div data-role=\'commentContent\' class=\'ipsType_normal ipsType_richText ipsContained\' data-controller=\'core.front.core.lightboxedImages\'>
			<p>Boas pessoal, a minha questão é simples: Tenho uma página de administração e gostaria que apenas o meu IP conseguisse acedê-la, os outros seriam reencaminhados para o 404.</p>
<p>Que código tenho de adicionar?</p>
<p> <img alt=":thumbsup:" data-emoticon="true" height="20" src="https://www.portugal-a-programar.pt/public/emoticons/default_thumbsup.png" srcset="https://www.portugal-a-programar.pt/public/emoticons/thumbsup@2x.png 2x" title=":thumbsup:" width="20"></p>

			
		</div>

		<div class=\'ipsItemControls\'>
			
				
					

	<div data-controller=\'core.front.core.reaction\' class=\'ipsItemControls_right ipsClearfix \'>	
		<div class=\'ipsReact ipsPos_right\'>
			
				
				<div class=\'ipsReact_blurb ipsHide\' data-role=\'reactionBlurb\'>
					
				</div>
			
			
			
		</div>
	</div>

				
			
			<ul class=\'ipsComment_controls ipsClearfix ipsItemControls_left\' data-role="commentControls">
				
					
					
					
				
				<li class=\'ipsHide\' data-role=\'commentLoading\'>
					<span class=\'ipsLoading ipsLoading_tiny ipsLoading_noAnim\'></span>
				</li>
			</ul>
		</div>

		
	</div>

	<div class=\'ipsMenu ipsMenu_wide ipsHide cPostShareMenu\' id=\'elSharePost_505651_menu\'>
		<div class=\'ipsPad\'>
			<h4 class=\'ipsType_sectionHead\'>Share this post</h4>
			<hr class=\'ipsHr\'>
			<h5 class=\'ipsType_normal ipsType_reset\'>Link to post</h5>
			
			<input type=\'text\' value=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/\' class=\'ipsField_fullWidth\'>
			

			
				<h5 class=\'ipsType_normal ipsType_reset ipsSpacer_top\'>Share on other sites</h5>
				

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505651" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505651&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505651&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>

			
		</div>
	</div>
</div>
	</div>
</article>

					
				
					
					
					




<a id="comment-505654"></a>
<article  id="elComment_505654" class="cPost ipsBox  ipsComment  ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone   ">
    
    
  
	

	<div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block">
		<h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line">
			

HappyHippyHippo
			<span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_positive\'>
	
			<i class=\'fa fa-plus-circle\'></i> 1,165
	
		</span>
	
</span>
		</h3>
		<div class="cAuthorPane_photo">
			

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/uploads/users/profile/photo-thumb-22715.png\' alt=\'HappyHippyHippo\' loading=\'lazy\'>
	</span>

		</div>
	</div>
	<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break">
<strong>

HappyHippyHippo
			</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_positive\'>
	
			<i class=\'fa fa-plus-circle\'></i> 1,165
	
		</span>
	
</span>
</h3>

		<ul class="cAuthorPane_info ipsList_reset">
			
			
			<li class="cAuthorPane_photo">
				

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/uploads/users/profile/photo-thumb-22715.png\' alt=\'HappyHippyHippo\' loading=\'lazy\'>
	</span>

			</li>
			
			
				<li>

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_positive\'>
	
			<i class=\'fa fa-plus-circle\'></i> 1,165
	
		</span>
	
</li>
				
				
				

	
	<li class=\'ipsResponsive_hidePhone ipsType_break pap-profile-list\'>
		
<a href="http://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=redirect&url=http://happyhippyhippo.com&%23039;_blank&%23039;%253Ehttp://happyhippyhippo.com%253C/a%253E%253C/div%253E&key=02d9dcb0478009334f03459584b1ee64362956ff995ec3a0de54aa9ad3335c5d&resource=&%23039;%20target=&%23039;%3Ehttp://happyhippyhippo.com%3C/a%3E%3C/div%3E%3C/a%3E%3C/div%3E" title="Website" target="_blank" class="pap-profile-icon-link" rel="nofollow"><i class="fa fa-globe fa-2x"></i></a>
	</li>
	
	<li class=\'ipsResponsive_hidePhone ipsType_break pap-profile-list\'>
		
<a href="http://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=redirect&url=https://github.com/happyhippyhippo&%23039;_blank&%23039;%253Ehttps://github.com/happyhippyhippo%253C/a%253E%253C/div%253E&key=ee03b8085adf9924624b3809fd2ad96a966486c447db747b436849e76d010e7b&resource=&%23039;%20target=&%23039;%3Ehttps://github.com/happyhippyhippo%3C/a%3E%3C/div%3E%3C/a%3E%3C/div%3E" title="GitHub" target="_blank" class="pap-profile-icon-link" rel="nofollow"><i class="fa fa-github-square fa-2x"></i></a>
	</li>
	
	<li class=\'ipsResponsive_hidePhone ipsType_break pap-profile-list\'>
		
<a href="http://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=redirect&url=https://twitter.com/HappyHippyHippo&%23039;_blank&%23039;%253Ehttps://twitter.com/HappyHippyHippo%253C/a%253E%253C/div%253E&key=46f272ad3f28723375c02cd2e02d8c473dbd1f7f4ad7bda8c1ea9546368aa829&resource=&%23039;%20target=&%23039;%3Ehttps://twitter.com/HappyHippyHippo%3C/a%3E%3C/div%3E%3C/a%3E%3C/div%3E" title="Twitter" target="_blank" class="pap-profile-icon-link" rel="nofollow"><i class="fa fa-twitter-square fa-2x"></i></a>
	</li>
	

			
		</ul></aside><div class="ipsColumn ipsColumn_fluid">
		

<div id=\'comment-505654_wrap\' data-controller=\'core.front.core.comment\' data-commentApp=\'forums\' data-commentType=\'forums\' data-commentID="505654" data-quoteData=\'{"userid":22715,"username":"HappyHippyHippo","timestamp":1367525167,"contentapp":"forums","contenttype":"forums","contentid":60351,"contentclass":"forums_Topic","contentcommentid":505654}\' class=\'ipsComment_content ipsType_medium  ipsFaded_withHover\'>
	

	<div class=\'ipsComment_meta ipsType_light\'>
		<div class=\'ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks\'>
			<ul class=\'ipsList_inline ipsComment_tools\'>
				
					<li><a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=reportComment&comment=505654\' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size=\'medium\' data-ipsDialog-flashMessage=\'Thanks for your report.\' data-ipsDialog-title="Report post" data-action=\'reportComment\' title=\'Report this content\' class=\'ipsFaded ipsFaded_more\'><span class=\'ipsResponsive_showPhone ipsResponsive_inline\'><i class=\'fa fa-flag\'></i></span><span class=\'ipsResponsive_hidePhone ipsResponsive_inline\'>Report post</span></a></li>
				
				
				
					<li><a class=\'ipsType_blendLinks\' href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505654\' data-ipsTooltip title=\'Share this post\' data-ipsMenu data-ipsMenu-closeOnClick=\'false\' id=\'elSharePost_505654\' data-role=\'shareComment\'><i class=\'fa fa-share-alt\'></i></a></li>
				
				
			</ul>
		</div>

		<div class=\'ipsType_reset\'>
			<a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505654\' class=\'ipsType_blendLinks\'>Posted <time datetime=\'2013-05-02T20:06:07Z\' title=\'05/02/2013 08:06  PM\' data-short=\'7 yr\'>May 2, 2013</time></a>
			<span class=\'ipsResponsive_hidePhone\'>
				
				
			</span>
		</div>
	</div>

	


	<div class=\'cPost_contentWrap ipsPad\'>
		
		<div data-role=\'commentContent\' class=\'ipsType_normal ipsType_richText ipsContained\' data-controller=\'core.front.core.lightboxedImages\'>
			<p>o mais simples é por htaccess</p>
<p>tens aqui um exemplo de como fazer o inverso, mas as alterações são triviais para permitir fazer o que pretendes</p>
<p><a href="http://www.javascriptkit.com/howto/htaccess5.shtml" rel="external nofollow">http://www.javascriptkit.com/howto/htaccess5.shtml</a></p>

			
		</div>

		<div class=\'ipsItemControls\'>
			
				
					

	<div data-controller=\'core.front.core.reaction\' class=\'ipsItemControls_right ipsClearfix \'>	
		<div class=\'ipsReact ipsPos_right\'>
			
				
				<div class=\'ipsReact_blurb \' data-role=\'reactionBlurb\'>
					
						

	
	<ul class=\'ipsReact_reactions\'>
	
		
			
			<li class=\'ipsReact_reactCount\'>
				
					<span data-ipsTooltip title="Vote">
				
						<span>
							<img src=\'https://www.portugal-a-programar.pt/public/icons/reactions/up.png\' alt="Vote">
						</span>
						<span>
							1
						</span>
				
					</span>
				
			</li>
		
	
	</ul>

<div class=\'ipsReact_overview ipsType_blendLinks\'>
	
	
</div>
					
				</div>
			
			
			
		</div>
	</div>

				
			
			<ul class=\'ipsComment_controls ipsClearfix ipsItemControls_left\' data-role="commentControls">
				
					
					
					
				
				<li class=\'ipsHide\' data-role=\'commentLoading\'>
					<span class=\'ipsLoading ipsLoading_tiny ipsLoading_noAnim\'></span>
				</li>
			</ul>
		</div>

		
			

	<div data-role="memberSignature" class=\'ipsResponsive_hidePhone\'>
		<hr class=\'ipsHr\'>
			

		<div class=\'ipsType_light ipsType_richText\' data-ipsLazyLoad>
			<table style="width:100%"><tbody><tr><td>
				IRC : sim, é algo que ainda existe >> #<span style="color:#00FF00;">p</span><span style="color:#daa520;">@</span><span style="color:#FF0000;">p</span>
			</td>
			<td>
				<div style="text-align:right;">
					<a href="https://github.com/HappyHippyHippo/portugol_plus" rel="external nofollow">Portugol Plus</a>
				</div>
			</td>
		</tr></tbody></table>
		</div>
	</div>

		
	</div>

	<div class=\'ipsMenu ipsMenu_wide ipsHide cPostShareMenu\' id=\'elSharePost_505654_menu\'>
		<div class=\'ipsPad\'>
			<h4 class=\'ipsType_sectionHead\'>Share this post</h4>
			<hr class=\'ipsHr\'>
			<h5 class=\'ipsType_normal ipsType_reset\'>Link to post</h5>
			
			<input type=\'text\' value=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505654\' class=\'ipsField_fullWidth\'>
			

			
				<h5 class=\'ipsType_normal ipsType_reset ipsSpacer_top\'>Share on other sites</h5>
				

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505654" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505654&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505654&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>

			
		</div>
	</div>
</div>
	</div>
</article>

					
				
					
					
					




<a id="comment-505656"></a>
<article  id="elComment_505656" class="cPost ipsBox  ipsComment  ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone   ">
    
    
  
	

	<div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block">
		<h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line">
			

Mark
			<span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
		</h3>
		<div class="cAuthorPane_photo">
			

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

		</div>
	</div>
	<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break">
<strong>

Mark
			</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
</h3>

		<ul class="cAuthorPane_info ipsList_reset">
			
			
			<li class="cAuthorPane_photo">
				

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

			</li>
			
			
				<li>

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</li>
				
				
				

			
		</ul></aside><div class="ipsColumn ipsColumn_fluid">
		

<div id=\'comment-505656_wrap\' data-controller=\'core.front.core.comment\' data-commentApp=\'forums\' data-commentType=\'forums\' data-commentID="505656" data-quoteData=\'{"userid":28027,"username":"Mark","timestamp":1367525601,"contentapp":"forums","contenttype":"forums","contentid":60351,"contentclass":"forums_Topic","contentcommentid":505656}\' class=\'ipsComment_content ipsType_medium  ipsFaded_withHover\'>
	

	<div class=\'ipsComment_meta ipsType_light\'>
		<div class=\'ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks\'>
			<ul class=\'ipsList_inline ipsComment_tools\'>
				
					<li><a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=reportComment&comment=505656\' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size=\'medium\' data-ipsDialog-flashMessage=\'Thanks for your report.\' data-ipsDialog-title="Report post" data-action=\'reportComment\' title=\'Report this content\' class=\'ipsFaded ipsFaded_more\'><span class=\'ipsResponsive_showPhone ipsResponsive_inline\'><i class=\'fa fa-flag\'></i></span><span class=\'ipsResponsive_hidePhone ipsResponsive_inline\'>Report post</span></a></li>
				
				
				
					<li><a class=\'ipsType_blendLinks\' href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505656\' data-ipsTooltip title=\'Share this post\' data-ipsMenu data-ipsMenu-closeOnClick=\'false\' id=\'elSharePost_505656\' data-role=\'shareComment\'><i class=\'fa fa-share-alt\'></i></a></li>
				
				
			</ul>
		</div>

		<div class=\'ipsType_reset\'>
			<a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505656\' class=\'ipsType_blendLinks\'>Posted <time datetime=\'2013-05-02T20:13:21Z\' title=\'05/02/2013 08:13  PM\' data-short=\'7 yr\'>May 2, 2013</time></a>
			<span class=\'ipsResponsive_hidePhone\'>
				
					(edited)
				
				
			</span>
		</div>
	</div>

	


	<div class=\'cPost_contentWrap ipsPad\'>
		
		<div data-role=\'commentContent\' class=\'ipsType_normal ipsType_richText ipsContained\' data-controller=\'core.front.core.lightboxedImages\'>
			<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="60351" data-ipsquote-contentclass="forums_Topic"><div>
<p>o mais simples é por htaccess</p>
<p>tens aqui um exemplo de como fazer o inverso, mas as alterações são triviais para permitir fazer o que pretendes</p>
<p><a href="http://www.javascriptkit.com/howto/htaccess5.shtml" rel="external nofollow">http://www.javascriptkit.com/howto/htaccess5.shtml</a></p>
<p></p>
</div></blockquote>
<p>Não sabia que dava por .htaccess, muito obrigado! O código acabou por ficar assim:</p>
<p></p>
<pre class="ipsCode prettyprint">
ErrorDocument 403 /nao_autorizado.php
order deny,allow
deny from all
allow from 127.0.0.1
</pre>
<div></div>
<p></p>
<p>Quem não vier do ip 127.0.0.1 é reencaminhado para a página nao_autorizado.php</p>

			
				

<span class=\'ipsType_reset ipsType_medium ipsType_light\' data-excludequote>
	<strong>Edited <time datetime=\'2013-05-03T13:55:58Z\' title=\'05/03/2013 01:55  PM\' data-short=\'7 yr\'>May 3, 2013</time> by brunoais</strong>
	
		<br>geshi(?)
	
	
</span>
			
		</div>

		<div class=\'ipsItemControls\'>
			
				
					

	<div data-controller=\'core.front.core.reaction\' class=\'ipsItemControls_right ipsClearfix \'>	
		<div class=\'ipsReact ipsPos_right\'>
			
				
				<div class=\'ipsReact_blurb ipsHide\' data-role=\'reactionBlurb\'>
					
				</div>
			
			
			
		</div>
	</div>

				
			
			<ul class=\'ipsComment_controls ipsClearfix ipsItemControls_left\' data-role="commentControls">
				
					
					
					
				
				<li class=\'ipsHide\' data-role=\'commentLoading\'>
					<span class=\'ipsLoading ipsLoading_tiny ipsLoading_noAnim\'></span>
				</li>
			</ul>
		</div>

		
	</div>

	<div class=\'ipsMenu ipsMenu_wide ipsHide cPostShareMenu\' id=\'elSharePost_505656_menu\'>
		<div class=\'ipsPad\'>
			<h4 class=\'ipsType_sectionHead\'>Share this post</h4>
			<hr class=\'ipsHr\'>
			<h5 class=\'ipsType_normal ipsType_reset\'>Link to post</h5>
			
			<input type=\'text\' value=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505656\' class=\'ipsField_fullWidth\'>
			

			
				<h5 class=\'ipsType_normal ipsType_reset ipsSpacer_top\'>Share on other sites</h5>
				

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505656" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505656&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505656&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>

			
		</div>
	</div>
</div>
	</div>
</article>

					
				
			
			
<input type="hidden" name="csrfKey" value="{{csrfKey}}" />


		</form>
	</div>

	

	
		<a id="replyForm"></a>
		<div data-role="replyArea" class="cTopicPostArea ipsAreaBackground ipsPad cTopicPostArea_noSize ipsSpacer_top">
			
				
				

<div data-controller="core.global.core.login">
	<input type="hidden" name="csrfKey" value="{{csrfKey}}">
	
		<div class=\'ipsType_center ipsPad cGuestTeaser\'>
			
				<h2 class=\'ipsType_pageTitle\'>Create an account or sign in to comment</h2>
				<p class=\'ipsType_light ipsType_normal ipsType_reset ipsSpacer_top ipsSpacer_half\'>You need to be a member in order to leave a comment</p>
			
	
			<div class=\'ipsBox ipsPad ipsSpacer_top\'>
				<div class=\'ipsGrid ipsGrid_collapsePhone\'>
					<div class=\'ipsGrid_span6 cGuestTeaser_left\'>
						<h2 class=\'ipsType_sectionHead\'>Create an account</h2>
						<p class=\'ipsType_normal ipsType_reset ipsType_light ipsSpacer_bottom\'>Sign up for a new account in our community. It\'s easy!</p>
						
							<a href=\'https://www.portugal-a-programar.pt/register/\' class=\'ipsButton ipsButton_primary ipsButton_small\' >
						
						Register a new account</a>
					</div>
					<div class=\'ipsGrid_span6 cGuestTeaser_right\'>
						<h2 class=\'ipsType_sectionHead\'>Sign in</h2>
						<p class=\'ipsType_normal ipsType_reset ipsType_light ipsSpacer_bottom\'>Already have an account? Sign in here.</p>
						<a href=\'https://www.portugal-a-programar.pt/login/?ref=aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8jcmVwbHlGb3Jt\' data-ipsDialog data-ipsDialog-size=\'medium\' data-ipsDialog-title="Sign In Now" class=\'ipsButton ipsButton_primary ipsButton_small\'>Sign In Now</a>
					</div>
				</div>
			</div>
		</div>
	
</div>
			
		</div>
	

	
		<div class="ipsResponsive_noFloat ipsResponsive_showPhone ipsResponsive_block ipsSpacer_top">
			

<div data-followApp=\'forums\' data-followArea=\'topic\' data-followID=\'60351\' data-controller=\'core.front.core.followButton\'>
	
		<span class=\'ipsType_light ipsType_blendLinks ipsResponsive_hidePhone ipsResponsive_inline\'><i class=\'fa fa-info-circle\'></i> <a href=\'https://www.portugal-a-programar.pt/login/\' title=\'Go to the sign in page\'>Sign in to follow this</a>  </span>
	
	

	<div class="ipsFollow ipsPos_middle ipsButton ipsButton_link ipsButton_verySmall " data-role="followButton">
		
			<a href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' class=\'ipsType_blendLinks ipsType_noUnderline\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>Followers</a>
			<a class=\'ipsCommentCount\' href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>1</a>
		
	</div>

</div>
		</div>
		<div class="ipsResponsive_noFloat ipsResponsive_showPhone ipsResponsive_block ipsSpacer_top">
			



		</div>
	
</div>



<div class="ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top ipsContained">
	<div class="ipsGrid_span6 ipsType_left ipsPager_prev ipsPager_noDesc">
		
			<a href="https://www.portugal-a-programar.pt/forums/forum/69-php/" title="Go to PHP" rel="parent">
				<span class="ipsPager_type">Go To Topic Listing</span>
			</a>
		
	</div>
	
</div>


	<hr class="ipsHr">
	

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>




						


					</div>
					


					
<nav class=\'ipsBreadcrumb ipsBreadcrumb_top ipsFaded_withHover\'>
	

	<ul class=\'ipsList_inline ipsPos_right\'>
		
		<li >
			<a data-action="defaultStream" class=\'ipsType_light \'  href=\'https://www.portugal-a-programar.pt/discover/\'><i class=\'icon-newspaper\'></i> <span>All Activity</span></a>
		</li>
		
	</ul>

	<ul data-role="breadcrumbList">
		<li>
			<a title="Home" href=\'https://www.portugal-a-programar.pt/\'>
				<span><i class=\'fa fa-home\'></i> Home <i class=\'fa fa-angle-right\'></i></span>
			</a>
		</li>
		
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/\'>
						<span>Forums <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/7-desenvolvimento-orientado-para-web/\'>
						<span>Desenvolvimento Orientado para Web <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/69-php/\'>
						<span>PHP <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'.\'><span>Restringir a um IP</span></a>
				
			</li>
		
	</ul>
</nav>
				</div>
			</div>
			
		</main>
		<footer id=\'ipsLayout_footer\' class=\'ipsClearfix\'>
			<div class=\'ipsLayout_container\'>
				
				

<ul id=\'elFooterSocialLinks\' class=\'ipsList_inline ipsType_center ipsSpacer_top\'>
	
</ul>


<ul class=\'ipsList_inline ipsType_center ipsSpacer_top\' id="elFooterLinks">
	
	
		<li>
			<a href=\'#elNavLang_menu\' id=\'elNavLang\' data-ipsMenu data-ipsMenu-above>Language <i class=\'fa fa-caret-down\'></i></a>
			<ul id=\'elNavLang_menu\' class=\'ipsMenu ipsMenu_selectable ipsHide\'>
			
				<li class=\'ipsMenu_item ipsMenu_itemChecked\'>
					<form action="//www.portugal-a-programar.pt/language/?csrfKey={{csrfKey}}" method="post">
					<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8=">
					<button type=\'submit\' name=\'id\' value=\'1\' class=\'ipsButton ipsButton_link ipsButton_link_secondary\'><i class=\'ipsFlag ipsFlag-us\'></i> English (USA) </button>
					</form>
				</li>
			
				<li class=\'ipsMenu_item\'>
					<form action="//www.portugal-a-programar.pt/language/?csrfKey={{csrfKey}}" method="post">
					<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8=">
					<button type=\'submit\' name=\'id\' value=\'2\' class=\'ipsButton ipsButton_link ipsButton_link_secondary\'><i class=\'ipsFlag ipsFlag-pt\'></i> Português (Default)</button>
					</form>
				</li>
			
			</ul>
		</li>
	
	
	
	
		<li><a href=\'https://www.portugal-a-programar.pt/privacy/\'>Privacy Policy</a></li>
	
    
        <li><a href=\'https://www.portugal-a-programar.pt/terms/\'>Terms of Use</a></li>
  	
    <li><a href=\'/help/\'>Help</a></li>
	
</ul>	


<p id=\'elCopyright\'>
	<span id=\'elCopyright_userLine\'></span>
	<a rel=\'nofollow\' title=\'Invision Community\' href=\'https://www.invisioncommunity.com/\'>Powered by Invision Community</a>
</p>
                <p id=\'elHost\'><a rel="nofollow" href=\'https://www.linode.com/?r=01af7bd509ed60a89ff2778a8058cfc0ef03300e\'>Hosted by Linode</a></p>
			</div>
		</footer>
		
<div id=\'elMobileDrawer\' class=\'ipsDrawer ipsHide\'>
	<a href=\'#\' class=\'ipsDrawer_close\' data-action=\'close\'><span>×</span></a>
	<div class=\'ipsDrawer_menu\'>
		<div class=\'ipsDrawer_content\'>
			

			<div class=\'ipsSpacer_bottom ipsPad\'>
				<ul class=\'ipsToolList ipsToolList_vertical\'>
					
						<li>
							<a href=\'https://www.portugal-a-programar.pt/login/\' id=\'elSigninButton_mobile\' class=\'ipsButton ipsButton_light ipsButton_small ipsButton_fullWidth\'>Existing user? Sign In</a>
						</li>
						
							<li>
								
									<a href=\'https://www.portugal-a-programar.pt/register/\'  id=\'elRegisterButton_mobile\' class=\'ipsButton ipsButton_small ipsButton_fullWidth ipsButton_important\'>Sign Up</a>
								
							</li>
						
					

					
				</ul>
			</div>

			<ul class=\'ipsDrawer_list\'>
				

				
				
				
				
					
						
						
							<li class=\'ipsDrawer_itemParent\'>
								<h4 class=\'ipsDrawer_title\'><a href=\'#\'>Home</a></h4>
								<ul class=\'ipsDrawer_list\'>
									<li data-action="back"><a href=\'#\'>Back</a></li>
									
										<li><a href=\'https://www.portugal-a-programar.pt/portal/\'>Home</a></li>
									
									
									
										


	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/forums/\' >
					Forums
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/blogs/\' >
					Blogs
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/files/\' >
					Downloads
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/guidelines/\' >
					Guidelines
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/staff/\' >
					Staff
				</a>
			</li>
		
	

	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/leaderboard/\' >
					Leaderboard
				</a>
			</li>
		
	

										
								</ul>
							</li>
						
					
				
					
						
						
							<li class=\'ipsDrawer_itemParent\'>
								<h4 class=\'ipsDrawer_title\'><a href=\'#\'>Activity</a></h4>
								<ul class=\'ipsDrawer_list\'>
									<li data-action="back"><a href=\'#\'>Back</a></li>
									
										<li><a href=\'https://www.portugal-a-programar.pt/discover/\'>Activity</a></li>
									
									
									
										


	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/discover/\' >
					All Activity
				</a>
			</li>
		
	

	

	

	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/search/\' >
					Search
				</a>
			</li>
		
	

										
								</ul>
							</li>
						
					
				
					
						
						
							<li class=\'ipsDrawer_itemParent\'>
								<h4 class=\'ipsDrawer_title\'><a href=\'#\'>Revista PROGRAMAR</a></h4>
								<ul class=\'ipsDrawer_list\'>
									<li data-action="back"><a href=\'#\'>Back</a></li>
									
										<li><a href=\'https://www.revista-programar.info/\'>Revista PROGRAMAR</a></li>
									
									
									
										


	
		
			<li>
				<a href=\'https://www.revista-programar.info/edicoes/\' target=\'_blank\' rel="noopener">
					Editions
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.revista-programar.info/participar/\' target=\'_blank\' rel="noopener">
					Contribute
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.revista-programar.info/lists/?p=subscribe&id=1\' target=\'_blank\' rel="noopener">
					Newsletter
				</a>
			</li>
		
	

										
								</ul>
							</li>
						
					
				
					
						
						
							<li><a href=\'https://wiki.portugal-a-programar.pt/\' target=\'_blank\' rel="noopener">Wiki</a></li>
						
					
				
					
						
						
							<li><a href=\'https://chat.ptnet.org/p@p\' target=\'_blank\' rel="noopener">IRC</a></li>
						
					
				
			</ul>
		</div>
	</div>
</div>

<div id=\'elMobileCreateMenuDrawer\' class=\'ipsDrawer ipsHide\'>
	<a href=\'#\' class=\'ipsDrawer_close\' data-action=\'close\'><span>×</span></a>
	<div class=\'ipsDrawer_menu\'>
		<div class=\'ipsDrawer_content ipsSpacer_bottom ipsPad\'>
			<ul class=\'ipsDrawer_list\'>
				<li class="ipsDrawer_listTitle ipsType_reset">Create New...</li>
				
			</ul>
		</div>
	</div>
</div>
		







	




	





<div id=\'elGuestTerms\' class=\'ipsPad_half ipsJS_hide\' data-role=\'guestTermsBar\' data-controller=\'core.front.core.guestTerms\'>
	<div class=\'ipsLayout_container\'>
		<div class=\'ipsGrid ipsGrid_collapsePhone\'>
			<div class=\'ipsGrid_span10\'>
				<h2 class=\'ipsType_sectionHead\'>Important Information</h2>
				<p class=\'ipsType_reset ipsType_medium cGuestTerms_contents\'>By using this site you accept our <a href=\'https://www.portugal-a-programar.pt/terms/\'>Terms of Use</a> and <a href=\'https://www.portugal-a-programar.pt/privacy/\'>Privacy Policy</a>. We have placed <a href=\'https://www.portugal-a-programar.pt/cookies/\'>cookies</a> on your device to help make this website better. You can <a href=\'https://www.portugal-a-programar.pt/cookies/\'>adjust your cookie settings</a>, otherwise we\'ll assume you\'re okay to continue.</p>
			</div>
			<div class=\'ipsGrid_span2\'>
				<a href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=terms&do=dismiss&ref=aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQv&csrfKey={{csrfKey}}\' rel=\'nofollow\' class=\'ipsButton ipsButton_veryLight ipsButton_large ipsButton_fullWidth\' data-action=\'dismissTerms\'><i class=\'fa fa-check\'></i>  I accept</a>
			</div>
		</div>
	</div>
</div>
		

	<script type=\'text/javascript\'>
		var ipsDebug = false;		
	
		var CKEDITOR_BASEPATH = \'//www.portugal-a-programar.pt/applications/core/interface/ckeditor/ckeditor/\';
	
		var ipsSettings = {
			
			
			cookie_path: "/",
			
			cookie_prefix: "ips4_",
			
			
			cookie_ssl: true,
			
			upload_imgURL: "",
			message_imgURL: "",
			notification_imgURL: "",
			baseURL: "//www.portugal-a-programar.pt/",
			jsURL: "//www.portugal-a-programar.pt/applications/core/interface/js/js.php",
			csrfKey: "{{csrfKey}}",
			antiCache: "90cf7938ca",
			disableNotificationSounds: false,
			useCompiledFiles: true,
			links_external: true,
			memberID: 0,
			lazyLoadEnabled: false,
			blankImg: "//www.portugal-a-programar.pt/applications/core/interface/js/spacer.png",
			analyticsProvider: "none",
			viewProfiles: false,
			mapProvider: \'none\',
			mapApiKey: \'\',
			
		};
	</script>





<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_library.js.5585a12b2f8629144e2b1a75ea799c12.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_js_lang_1.js.75546a2d3bdd00f1dbe2d14e15221796.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_framework.js.471243fb720810e22eb55a5516c69cff.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_core/global_global_core.js.a695aa873bb83c9dbcc327be2c9f0013.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_front.js.31066d673721811b7068fdd9dab2f288.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_forums/front_front_topic.js.830b6149b408950c84165ec835c50bba.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_core/front_front_core.js.e07488fb0c600400559ddc17e5c3aba7.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_map.js.10ef3c2cea48289326fef83be98cb555.js?v=90cf7938ca\' data-ips></script>



	<script type=\'text/javascript\'>
		
			ips.setSetting( \'date_format\', jQuery.parseJSON(\'"mm\/dd\/yy"\') );
		
			ips.setSetting( \'date_first_day\', jQuery.parseJSON(\'0\') );
		
			ips.setSetting( \'remote_image_proxy\', jQuery.parseJSON(\'1\') );
		
			ips.setSetting( \'ipb_url_filter_option\', jQuery.parseJSON(\'"black"\') );
		
			ips.setSetting( \'url_filter_any_action\', jQuery.parseJSON(\'"allow"\') );
		
			ips.setSetting( \'bypass_profanity\', jQuery.parseJSON(\'0\') );
		
			ips.setSetting( \'emoji_style\', jQuery.parseJSON(\'"native"\') );
		
			ips.setSetting( \'emoji_shortcodes\', jQuery.parseJSON(\'"1"\') );
		
			ips.setSetting( \'emoji_ascii\', jQuery.parseJSON(\'"1"\') );
		
			ips.setSetting( \'emoji_cache\', jQuery.parseJSON(\'"1563130824"\') );
		
		
	</script>



<script type=\'application/ld+json\'>
{
    "name": "Restringir a um IP",
    "headline": "Restringir a um IP",
    "text": "Boas pessoal, a minha quest\u00e3o \u00e9 simples: Tenho uma p\u00e1gina de administra\u00e7\u00e3o e gostaria que apenas o meu IP conseguisse aced\u00ea-la, os outros seriam reencaminhados para o 404. \nQue c\u00f3digo tenho de adicionar? \n  ",
    "dateCreated": "2013-05-02T19:52:09+0000",
    "datePublished": "2013-05-02T19:52:09+0000",
    "pageStart": 1,
    "pageEnd": 1,
    "image": "https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png",
    "author": {
        "url": "https://www.portugal-a-programar.pt/profile/28027-mark/"
    },
    "interactionStatistic": [
        {
            "@type": "InteractionCounter",
            "interactionType": "http://schema.org/ViewAction",
            "userInteractionCount": 657
        },
        {
            "@type": "InteractionCounter",
            "interactionType": "http://schema.org/CommentAction",
            "userInteractionCount": 3
        },
        {
            "@type": "InteractionCounter",
            "interactionType": "http://schema.org/FollowAction",
            "userInteractionCount": 37
        }
    ],
    "@context": "http://schema.org",
    "@type": "DiscussionForumPosting",
    "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/",
    "isPartOf": {
        "@id": "https://www.portugal-a-programar.pt/#website"
    },
    "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/",
    "discussionUrl": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/",
    "comment": [
        {
            "@type": "Comment",
            "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505651",
            "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505651",
            "author": {
                "@type": "Person",
                "name": "Mark",
                "image": "https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png",
                "url": "https://www.portugal-a-programar.pt/profile/28027-mark/"
            },
            "dateCreated": "2013-05-02T19:52:09+0000",
            "text": "Boas pessoal, a minha quest\u00e3o \u00e9 simples: Tenho uma p\u00e1gina de administra\u00e7\u00e3o e gostaria que apenas o meu IP conseguisse aced\u00ea-la, os outros seriam reencaminhados para o 404. \nQue c\u00f3digo tenho de adicionar? \n  "
        },
        {
            "@type": "Comment",
            "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505654",
            "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505654",
            "author": {
                "@type": "Person",
                "name": "HappyHippyHippo",
                "image": "https://www.portugal-a-programar.pt/uploads/users/profile/photo-thumb-22715.png",
                "url": "https://www.portugal-a-programar.pt/profile/22715-happyhippyhippo/"
            },
            "dateCreated": "2013-05-02T20:06:07+0000",
            "text": "o mais simples \u00e9 por htaccess \ntens aqui um exemplo de como fazer o inverso, mas as altera\u00e7\u00f5es s\u00e3o triviais para permitir fazer o que pretendes \nhttp://www.javascriptkit.com/howto/htaccess5.shtml "
        },
        {
            "@type": "Comment",
            "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505656",
            "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505656",
            "author": {
                "@type": "Person",
                "name": "Mark",
                "image": "https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png",
                "url": "https://www.portugal-a-programar.pt/profile/28027-mark/"
            },
            "dateCreated": "2013-05-02T20:13:21+0000",
            "text": "N\u00e3o sabia que dava por .htaccess, muito obrigado! O c\u00f3digo acabou por ficar assim: \n \n\nErrorDocument 403 /nao_autorizado.php\norder deny,allow\ndeny from all\nallow from 127.0.0.1\n\n\n \nQuem n\u00e3o vier do ip 127.0.0.1 \u00e9 reencaminhado para a p\u00e1gina nao_autorizado.php "
        }
    ]
}	
</script>

<script type=\'application/ld+json\'>
{
    "@context": "http://www.schema.org",
    "publisher": "https://www.portugal-a-programar.pt/#organization",
    "@type": "WebSite",
    "@id": "https://www.portugal-a-programar.pt/#website",
    "mainEntityOfPage": "https://www.portugal-a-programar.pt/",
    "name": "Portugal-a-Programar",
    "url": "https://www.portugal-a-programar.pt/",
    "potentialAction": {
        "type": "SearchAction",
        "query-input": "required name=query",
        "target": "https://www.portugal-a-programar.pt/search/?q={query}"
    },
    "inLanguage": [
        {
            "@type": "Language",
            "name": "English (USA)",
            "alternateName": "en-US"
        },
        {
            "@type": "Language",
            "name": "Portugu\u00eas",
            "alternateName": "pt-PT"
        }
    ]
}	
</script>

<script type=\'application/ld+json\'>
{
    "@context": "http://www.schema.org",
    "@type": "Organization",
    "@id": "https://www.portugal-a-programar.pt/#organization",
    "mainEntityOfPage": "https://www.portugal-a-programar.pt/",
    "name": "Portugal-a-Programar",
    "url": "https://www.portugal-a-programar.pt/",
    "logo": {
        "@type": "ImageObject",
        "@id": "https://www.portugal-a-programar.pt/#logo",
        "url": "https://www.portugal-a-programar.pt/public/themes/monthly_2018_01/pap-banner.png.692a62d6d249b310187aebab094ee0b8.png"
    },
    "sameAs": [
        "https://twitter.com/pt_programar",
        "https://www.facebook.com/portugal.programar"
    ]
}	
</script>

<script type=\'application/ld+json\'>
{
    "@context": "http://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@id": "https://www.portugal-a-programar.pt/forums/",
                "name": "Forums"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@id": "https://www.portugal-a-programar.pt/forums/forum/7-desenvolvimento-orientado-para-web/",
                "name": "Desenvolvimento Orientado para Web"
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@id": "https://www.portugal-a-programar.pt/forums/forum/69-php/",
                "name": "PHP"
            }
        }
    ]
}	
</script>


		
		
		<!--ipsQueryLog-->
		<!--ipsCachingLog-->
		
		
	</body>
</html>', ?, ? )

REPLACE INTO `core_output_cache` ( `cache_key`, `cache_value`, `cache_meta`, `cache_expire` ) VALUES ( 'page_7296b43d0ee81f88a63e3d2cf4bd96e8_1_', '
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
	<head>
		<title>Restringir a um IP - PHP - Portugal-a-Programar</title>
		
		<!--[if lt IE 9]>
			<link rel="stylesheet" type="text/css" href="https://www.portugal-a-programar.pt/public/themes/css_built_2/5e61784858ad3c11f00b5706d12afe52_ie8.css.7858791dab0cfd699ed161354bd4717e.css">
		    <script src="//www.portugal-a-programar.pt/applications/core/interface/html5shiv/html5shiv.js"></script>
		<![endif]-->
        
		
<meta charset="utf-8">

	<meta name="viewport" content="width=device-width, initial-scale=1">


	
	
		<meta property="og:image" content="https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg">
	


	<meta name="twitter:card" content="summary_large_image" />


	
		<meta name="twitter:site" content="@pt_programar" />
	


	
		
			
				<meta property="og:title" content="Restringir a um IP">
			
		
	

	
		
			
				<meta property="og:type" content="object">
			
		
	

	
		
			
				<meta property="og:url" content="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/">
			
		
	

	
		
			
				<meta name="description" content="Boas pessoal, a minha questão é simples: Tenho uma página de administração e gostaria que apenas o meu IP conseguisse acedê-la, os outros seriam reencaminhados para o 404. Que código tenho de adicionar'{"code":200,"contentType":"text\/html","httpHeaders":{"X-IPS-Cached-Response":"Fri, 29 May 2020 18:36:29 GMT"},"lastUpdated":1590777389}'">
			
		
	

	
		
			
				<meta property="og:description" content="Boas pessoal, a minha questão é simples: Tenho uma página de administração e gostaria que apenas o meu IP conseguisse acedê-la, os outros seriam reencaminhados para o 404. Que código tenho de adicionar1590777689">
			
		
	

	
		
			
				<meta property="og:updated_time" content="2013-05-02T20:13:21Z">
			
		
	

	
		
			
				<meta name="keywords" content="php">
			
		
	

	
		
			
				<meta property="og:site_name" content="Portugal-a-Programar">
			
		
	

	
		
			
				<meta property="og:locale" content="en_US">
			
		
	


	
		<link rel="canonical" href="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/" />
	

<link rel="alternate" type="application/rss+xml" title="Topics" href="https://www.portugal-a-programar.pt/rss/1-topics.xml/" /><link rel="alternate" type="application/rss+xml" title="Blog Posts" href="https://www.portugal-a-programar.pt/rss/2-blog-posts.xml/" />


<link rel="manifest" href="https://www.portugal-a-programar.pt/manifest.webmanifest/" crossorigin="use-credentials">
<meta name="msapplication-config" content="https://www.portugal-a-programar.pt/browserconfig.xml/">
<meta name="msapplication-starturl" content="">
<meta name="application-name" content="Portugal-a-Programar">
<meta name="apple-mobile-web-app-title" content="Portugal-a-Programar">

	<meta name="theme-color" content="#ffffff">


	<meta name="msapplication-TileColor" content="#ffffff">





	

	
		
			<link rel="icon" sizes="36x36" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-36x36.png">
		
	

	
		
			<link rel="icon" sizes="48x48" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-48x48.png">
		
	

	
		
			<link rel="icon" sizes="72x72" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-72x72.png">
		
	

	
		
			<link rel="icon" sizes="96x96" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-96x96.png">
		
	

	
		
			<link rel="icon" sizes="144x144" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-144x144.png">
		
	

	
		
			<link rel="icon" sizes="192x192" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-192x192.png">
		
	

	
		
			<link rel="icon" sizes="256x256" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-256x256.png">
		
	

	
		
			<link rel="icon" sizes="384x384" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-384x384.png">
		
	

	
		
			<link rel="icon" sizes="512x512" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/android-chrome-512x512.png">
		
	

	
		
			<meta name="msapplication-square70x70logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-square70x70logo.png"/>
		
	

	
		
			<meta name="msapplication-TileImage" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-TileImage.png"/>
		
	

	
		
			<meta name="msapplication-square150x150logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-square150x150logo.png"/>
		
	

	
		
			<meta name="msapplication-wide310x150logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-wide310x150logo.png"/>
		
	

	
		
			<meta name="msapplication-square310x310logo" content="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/msapplication-square310x310logo.png"/>
		
	

	
		
			
				<link rel="apple-touch-icon" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-57x57.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="60x60" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-60x60.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="72x72" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-72x72.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="76x76" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-76x76.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="114x114" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-114x114.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="120x120" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-120x120.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="144x144" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-144x144.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="152x152" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-152x152.png">
			
		
	

	
		
			
				<link rel="apple-touch-icon" sizes="180x180" href="https://www.portugal-a-programar.pt/public/themes/monthly_2020_03/apple-touch-icon-180x180.png">
			
		
	

		




	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/341e4a57816af3ba440d891ca87450ff_framework.css.6594b128d35fcd49b112973c44c4a35d.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/05e81b71abe4f22d6eb8d1a929494829_responsive.css.b7c44f3d5e0a67ee243c6a1e8ac29e92.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/20446cf2d164adcc029377cb04d43d17_flags.css.5351285f9a70f71f39363155f2c234ce.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/90eb5adf50a8c640f633d47fd7eb1778_core.css.233417094f247a5e0b17d9b3bfeb4a34.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/5a0da001ccc2200dc5625c3f3934497d_core_responsive.css.755e9a2eb19e44c93f93f6f2b6614e50.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/b621d4e5c4a59bf8393b9f13e3136a2b_query_log.css.e7859b73ee9fc9ff9f6b76fe79da5e08.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/62e269ced0fdab7e30e026f1d30ae516_forums.css.b08c5ee368357283fb861f8eb02f446d.css?v=90cf7938ca\' media=\'all\'>

	<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/76e62c573090645fb99a15a363d8620e_forums_responsive.css.e457019441b7ef8e58709419e219aa1e.css?v=90cf7938ca\' media=\'all\'>




<link rel=\'stylesheet\' href=\'https://www.portugal-a-programar.pt/public/themes/css_built_2/258adbb6e4f3e83cd3b355f84e3fa002_custom.css.6e339d5b60c55d7382d2f66b90fa46da.css?v=90cf7938ca\' media=\'all\'>



		
		

	</head>
	<body class=\'ipsApp ipsApp_front ipsJS_none ipsClearfix\' data-controller=\'core.front.core.app\' data-message="" data-pageApp=\'forums\' data-pageLocation=\'front\' data-pageModule=\'forums\' data-pageController=\'topic\' data-pageID=\'60351\'>
		<a href=\'#elContent\' class=\'ipsHide\' title=\'Go to main content on this page\' accesskey=\'m\'>Jump to content</a>
		<div id=\'ipsLayout_header\' class=\'ipsClearfix\'>
			





			
<ul id=\'elMobileNav\' class=\'ipsList_inline ipsResponsive_hideDesktop ipsResponsive_block\' data-controller=\'core.front.core.mobileNav\'>
	
		
			
			
				
				
			
				
				
			
				
					<li id=\'elMobileBreadcrumb\'>
						<a href=\'https://www.portugal-a-programar.pt/forums/forum/69-php/\'>
							<span>PHP</span>
						</a>
					</li>
				
				
			
				
				
			
		
	
	
	
	<li >
		<a data-action="defaultStream" class=\'ipsType_light\'  href=\'https://www.portugal-a-programar.pt/discover/\'><i class=\'icon-newspaper\'></i></a>
	</li>

	

	
		<li class=\'ipsJS_show\'>
			<a href=\'https://www.portugal-a-programar.pt/search/\'><i class=\'fa fa-search\'></i></a>
		</li>
	
	<li data-ipsDrawer data-ipsDrawer-drawerElem=\'#elMobileDrawer\'>
		<a href=\'#\'>
			
			
				
			
			
			
			<i class=\'fa fa-navicon\'></i>
		</a>
	</li>
</ul>
			<header>
				<div class=\'ipsLayout_container\'>
					


<a href=\'https://www.portugal-a-programar.pt/\' id=\'elLogo\' accesskey=\'1\'><img src="https://www.portugal-a-programar.pt/public/themes/monthly_2018_01/pap-banner.png.692a62d6d249b310187aebab094ee0b8.png" alt=\'Portugal-a-Programar\'></a>

					

	<ul id=\'elUserNav\' class=\'ipsList_inline cSignedOut ipsClearfix ipsResponsive_hidePhone ipsResponsive_block\'>
		

	
		<li class=\'cUserNav_icon\'>
			<a href=\'https://twitter.com/pt_programar\' target=\'_blank\' class=\'cShareLink cShareLink_twitter\' rel=\'noopener noreferrer\'><i class=\'fa fa-twitter\'></i></a>
		</li>
	
		<li class=\'cUserNav_icon\'>
			<a href=\'https://www.facebook.com/portugal.programar\' target=\'_blank\' class=\'cShareLink cShareLink_facebook\' rel=\'noopener noreferrer\'><i class=\'fa fa-facebook\'></i></a>
		</li>
	

		<li id=\'elSignInLink\'>
			<a href=\'https://www.portugal-a-programar.pt/login/\' data-ipsMenu-closeOnClick="false" data-ipsMenu id=\'elUserSignIn\'>
				Existing user? Sign In  <i class=\'fa fa-caret-down\'></i>
			</a>
			
<div id=\'elUserSignIn_menu\' class=\'ipsMenu ipsMenu_auto ipsHide\'>
	<form accept-charset=\'utf-8\' method=\'post\' action=\'https://www.portugal-a-programar.pt/login/\' data-controller="core.global.core.login">
		<input type="hidden" name="csrfKey" value="{{csrfKey}}">
		<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8=">
		<div data-role="loginForm">
			
			
			
				
<div class="ipsPad ipsForm ipsForm_vertical">
	<h4 class="ipsType_sectionHead">Sign In</h4>
	<br><br>
	<ul class=\'ipsList_reset\'>
		<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
			
			
				<input type="text" placeholder="Display Name or Email Address" name="auth" autocomplete="email">
			
		</li>
		<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
			<input type="password" placeholder="Password" name="password" autocomplete="current-password">
		</li>
		<li class="ipsFieldRow ipsFieldRow_checkbox ipsClearfix">
			<span class="ipsCustomInput">
				<input type="checkbox" name="remember_me" id="remember_me_checkbox" value="1" checked aria-checked="true">
				<span></span>
			</span>
			<div class="ipsFieldRow_content">
				<label class="ipsFieldRow_label" for="remember_me_checkbox">Remember me</label>
				<span class="ipsFieldRow_desc">Not recommended on shared computers</span>
			</div>
		</li>
		
			<li class="ipsFieldRow ipsFieldRow_checkbox ipsClearfix">
				<span class="ipsCustomInput">
					<input type="checkbox" name="anonymous" id="anonymous_checkbox" value="1" aria-checked="false">
					<span></span>
				</span>
				<div class="ipsFieldRow_content">
					<label class="ipsFieldRow_label" for="anonymous_checkbox">Sign in anonymously</label>
				</div>
			</li>
		
		<li class="ipsFieldRow ipsFieldRow_fullWidth">
			<br>
			<button type="submit" name="_processLogin" value="usernamepassword" class="ipsButton ipsButton_primary ipsButton_small" id="elSignIn_submit">Sign In</button>
			
				<br>
				<p class="ipsType_right ipsType_small">
					
						<a href=\'https://www.portugal-a-programar.pt/lostpassword/\' data-ipsDialog data-ipsDialog-title=\'Forgot your password?\'>
					
					Forgot your password?</a>
				</p>
			
		</li>
	</ul>
</div>
			
		</div>
	</form>
</div>
		</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/register/\'  id=\'elRegisterButton\' class=\'ipsButton ipsButton_normal ipsButton_primary\'>Sign Up</a>
				
			</li>
		
	</ul>

				</div>
			</header>
			

	<nav data-controller=\'core.front.core.navBar\' class=\'\'>
		<div class=\'ipsNavBar_primary ipsLayout_container  ipsClearfix\'>
			

	<div id="elSearchWrapper" class="ipsPos_right">
		<div id=\'elSearch\' class=\'\' data-controller=\'core.front.core.quickSearch\'>
			<form accept-charset=\'utf-8\' action=\'//www.portugal-a-programar.pt/search/?do=quicksearch\' method=\'post\'>
				<input type=\'search\' id=\'elSearchField\' placeholder=\'Search...\' name=\'q\' autocomplete=\'off\'>
				<button class=\'cSearchSubmit\' type="submit"><i class="fa fa-search"></i></button>
				<div id="elSearchExpanded">
					<div class="ipsMenu_title">
						Search In
					</div>
					<ul class="ipsSideMenu_list ipsSideMenu_withRadios ipsSideMenu_small ipsType_normal" data-ipsSideMenu data-ipsSideMenu-type="radio" data-ipsSideMenu-responsive="false" data-role="searchContexts">
						<li>
							<span class=\'ipsSideMenu_item ipsSideMenu_itemActive\' data-ipsMenuValue=\'all\'>
								<input type="radio" name="type" value="all" checked id="elQuickSearchRadio_type_all">
								<label for=\'elQuickSearchRadio_type_all\' id=\'elQuickSearchRadio_type_all_label\'>Everywhere</label>
							</span>
						</li>
						
						
							<li>
								<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'forums_topic\'>
									<input type="radio" name="type" value="forums_topic" id="elQuickSearchRadio_type_forums_topic">
									<label for=\'elQuickSearchRadio_type_forums_topic\' id=\'elQuickSearchRadio_type_forums_topic_label\'>Topics</label>
								</span>
							</li>
						
						
							
								<li>
									<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'contextual_{"type":"forums_topic","nodes":69}\'>
										<input type="radio" name="type" value=\'contextual_{"type":"forums_topic","nodes":69}\' id=\'elQuickSearchRadio_type_contextual_e5d7146176d36b04fab7799bb90edc27\'>
										<label for=\'elQuickSearchRadio_type_contextual_e5d7146176d36b04fab7799bb90edc27\' id=\'elQuickSearchRadio_type_contextual_e5d7146176d36b04fab7799bb90edc27_label\'>This Forum</label>
									</span>
								</li>
							
								<li>
									<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'contextual_{"type":"forums_topic","item":60351}\'>
										<input type="radio" name="type" value=\'contextual_{"type":"forums_topic","item":60351}\' id=\'elQuickSearchRadio_type_contextual_71e961d57b60790dc50820a0a00c274f\'>
										<label for=\'elQuickSearchRadio_type_contextual_71e961d57b60790dc50820a0a00c274f\' id=\'elQuickSearchRadio_type_contextual_71e961d57b60790dc50820a0a00c274f_label\'>This Topic</label>
									</span>
								</li>
							
						
						<li data-role="showMoreSearchContexts">
							<span class=\'ipsSideMenu_item\' data-action="showMoreSearchContexts" data-exclude="forums_topic">
								More options...
							</span>
						</li>
					</ul>
					<div class="ipsMenu_title">
						Find results that contain...
					</div>
					<ul class=\'ipsSideMenu_list ipsSideMenu_withRadios ipsSideMenu_small ipsType_normal\' role="radiogroup" data-ipsSideMenu data-ipsSideMenu-type="radio" data-ipsSideMenu-responsive="false" data-filterType=\'andOr\'>
						
							<li>
								<span class=\'ipsSideMenu_item ipsSideMenu_itemActive\' data-ipsMenuValue=\'and\'>
									<input type="radio" name="search_and_or" value="and" checked id="elRadio_andOr_and">
									<label for=\'elRadio_andOr_and\' id=\'elField_andOr_label_and\'><em>All</em> of my search term words</label>
								</span>
							</li>
						
							<li>
								<span class=\'ipsSideMenu_item \' data-ipsMenuValue=\'or\'>
									<input type="radio" name="search_and_or" value="or"  id="elRadio_andOr_or">
									<label for=\'elRadio_andOr_or\' id=\'elField_andOr_label_or\'><em>Any</em> of my search term words</label>
								</span>
							</li>
						
					</ul>
					<div class="ipsMenu_title">
						Find results in...
					</div>
					<ul class=\'ipsSideMenu_list ipsSideMenu_withRadios ipsSideMenu_small ipsType_normal\' role="radiogroup" data-ipsSideMenu data-ipsSideMenu-type="radio" data-ipsSideMenu-responsive="false" data-filterType=\'searchIn\'>
						<li>
							<span class=\'ipsSideMenu_item ipsSideMenu_itemActive\' data-ipsMenuValue=\'all\'>
								<input type="radio" name="search_in" value="all" checked id="elRadio_searchIn_and">
								<label for=\'elRadio_searchIn_and\' id=\'elField_searchIn_label_all\'>Content titles and body</label>
							</span>
						</li>
						<li>
							<span class=\'ipsSideMenu_item\' data-ipsMenuValue=\'titles\'>
								<input type="radio" name="search_in" value="titles" id="elRadio_searchIn_titles">
								<label for=\'elRadio_searchIn_titles\' id=\'elField_searchIn_label_titles\'>Content titles only</label>
							</span>
						</li>
					</ul>
				</div>
			</form>
		</div>
	</div>

			<ul data-role="primaryNavBar" class=\'ipsResponsive_showDesktop ipsResponsive_block\'>
				


	
		
		
			
		
		<li class=\'ipsNavBar_active\' data-active id=\'elNavSecondary_25\' data-role="navBarItem" data-navApp="portal" data-navExt="Portal">
			
			
				<a href="https://www.portugal-a-programar.pt/portal/"  data-navItem-id="25" data-navDefault>
					Home
				</a>
			
			
				<ul class=\'ipsNavBar_secondary \' data-role=\'secondaryNavBar\'>
					


	
		
		
			
		
		<li class=\'ipsNavBar_active\' data-active id=\'elNavSecondary_9\' data-role="navBarItem" data-navApp="forums" data-navExt="Forums">
			
			
				<a href="https://www.portugal-a-programar.pt/forums/"  data-navItem-id="9" data-navDefault>
					Forums
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_8\' data-role="navBarItem" data-navApp="blog" data-navExt="Blogs">
			
			
				<a href="https://www.portugal-a-programar.pt/blogs/"  data-navItem-id="8" >
					Blogs
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_10\' data-role="navBarItem" data-navApp="downloads" data-navExt="Downloads">
			
			
				<a href="https://www.portugal-a-programar.pt/files/"  data-navItem-id="10" >
					Downloads
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_11\' data-role="navBarItem" data-navApp="core" data-navExt="Guidelines">
			
			
				<a href="https://www.portugal-a-programar.pt/guidelines/"  data-navItem-id="11" >
					Guidelines
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_12\' data-role="navBarItem" data-navApp="core" data-navExt="StaffDirectory">
			
			
				<a href="https://www.portugal-a-programar.pt/staff/"  data-navItem-id="12" >
					Staff
				</a>
			
			
		</li>
	
	

	
	

	
		
		
		<li  id=\'elNavSecondary_26\' data-role="navBarItem" data-navApp="core" data-navExt="Leaderboard">
			
			
				<a href="https://www.portugal-a-programar.pt/leaderboard/"  data-navItem-id="26" >
					Leaderboard
				</a>
			
			
		</li>
	
	

					<li class=\'ipsHide\' id=\'elNavigationMore_25\' data-role=\'navMore\'>
						<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_25\' id=\'elNavigationMore_25_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
						<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_25_dropdown_menu\' data-role=\'moreDropdown\'></ul>
					</li>
				</ul>
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_2\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.portugal-a-programar.pt/discover/"  data-navItem-id="2" >
					Activity
				</a>
			
			
				<ul class=\'ipsNavBar_secondary ipsHide\' data-role=\'secondaryNavBar\'>
					


	
		
		
		<li  id=\'elNavSecondary_3\' data-role="navBarItem" data-navApp="core" data-navExt="AllActivity">
			
			
				<a href="https://www.portugal-a-programar.pt/discover/"  data-navItem-id="3" >
					All Activity
				</a>
			
			
		</li>
	
	

	
	

	
	

	
	

	
		
		
		<li  id=\'elNavSecondary_7\' data-role="navBarItem" data-navApp="core" data-navExt="Search">
			
			
				<a href="https://www.portugal-a-programar.pt/search/"  data-navItem-id="7" >
					Search
				</a>
			
			
		</li>
	
	

					<li class=\'ipsHide\' id=\'elNavigationMore_2\' data-role=\'navMore\'>
						<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_2\' id=\'elNavigationMore_2_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
						<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_2_dropdown_menu\' data-role=\'moreDropdown\'></ul>
					</li>
				</ul>
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_15\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/" target=\'_blank\' rel="noopener" data-navItem-id="15" >
					Revista PROGRAMAR
				</a>
			
			
				<ul class=\'ipsNavBar_secondary ipsHide\' data-role=\'secondaryNavBar\'>
					


	
		
		
		<li  id=\'elNavSecondary_16\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/edicoes/" target=\'_blank\' rel="noopener" data-navItem-id="16" >
					Editions
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_17\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/participar/" target=\'_blank\' rel="noopener" data-navItem-id="17" >
					Contribute
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_27\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://www.revista-programar.info/lists/?p=subscribe&id=1" target=\'_blank\' rel="noopener" data-navItem-id="27" >
					Newsletter
				</a>
			
			
		</li>
	
	

					<li class=\'ipsHide\' id=\'elNavigationMore_15\' data-role=\'navMore\'>
						<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_15\' id=\'elNavigationMore_15_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
						<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_15_dropdown_menu\' data-role=\'moreDropdown\'></ul>
					</li>
				</ul>
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_18\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://wiki.portugal-a-programar.pt/" target=\'_blank\' rel="noopener" data-navItem-id="18" >
					Wiki
				</a>
			
			
		</li>
	
	

	
		
		
		<li  id=\'elNavSecondary_19\' data-role="navBarItem" data-navApp="core" data-navExt="CustomItem">
			
			
				<a href="https://chat.ptnet.org/p@p" target=\'_blank\' rel="noopener" data-navItem-id="19" >
					IRC
				</a>
			
			
		</li>
	
	

				<li class=\'ipsHide\' id=\'elNavigationMore\' data-role=\'navMore\'>
					<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore\' id=\'elNavigationMore_dropdown\'>More</a>
					<ul class=\'ipsNavBar_secondary ipsHide\' data-role=\'secondaryNavBar\'>
						<li class=\'ipsHide\' id=\'elNavigationMore_more\' data-role=\'navMore\'>
							<a href=\'#\' data-ipsMenu data-ipsMenu-appendTo=\'#elNavigationMore_more\' id=\'elNavigationMore_more_dropdown\'>More <i class=\'fa fa-caret-down\'></i></a>
							<ul class=\'ipsHide ipsMenu ipsMenu_auto\' id=\'elNavigationMore_more_dropdown_menu\' data-role=\'moreDropdown\'></ul>
						</li>
					</ul>
				</li>
			</ul>
		</div>
	</nav>

		</div>
		<main id=\'ipsLayout_body\' class=\'ipsLayout_container\'>
			<div id=\'ipsLayout_contentArea\'>
				<div id=\'ipsLayout_contentWrapper\'>
					
<nav class=\'ipsBreadcrumb ipsBreadcrumb_top ipsFaded_withHover\'>
	

	<ul class=\'ipsList_inline ipsPos_right\'>
		
		<li >
			<a data-action="defaultStream" class=\'ipsType_light \'  href=\'https://www.portugal-a-programar.pt/discover/\'><i class=\'icon-newspaper\'></i> <span>All Activity</span></a>
		</li>
		
	</ul>

	<ul data-role="breadcrumbList">
		<li>
			<a title="Home" href=\'https://www.portugal-a-programar.pt/\'>
				<span><i class=\'fa fa-home\'></i> Home <i class=\'fa fa-angle-right\'></i></span>
			</a>
		</li>
		
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/\'>
						<span>Forums <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/7-desenvolvimento-orientado-para-web/\'>
						<span>Desenvolvimento Orientado para Web <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/69-php/\'>
						<span>PHP <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'.\'><span>Restringir a um IP</span></a>
				
			</li>
		
	</ul>
</nav>
					
					<div id=\'ipsLayout_mainArea\'>
						<a id=\'elContent\'></a>
						
						
						
						

	




	<div class=\'cWidgetContainer \'  data-role=\'widgetReceiver\' data-orientation=\'horizontal\' data-widgetArea=\'header\'>
		<ul class=\'ipsList_reset\'>
			
				
					
					<li class=\'ipsWidget ipsWidget_horizontal ipsBox ipsWidgetHide ipsHide \' data-blockID=\'app_portal_portalBlock_os7jqqx1x\' data-blockConfig="true" data-blockTitle="Portal Blocks" data-blockErrorMessage="This block cannot be shown. This could be because it needs configuring, is unable to show on this page, or will show after reloading this page." data-controller=\'core.front.widgets.block\'></li>
				
			
		</ul>
	</div>

						






<div class="ipsPageHeader ipsClearfix">
	
		<div class="ipsPos_right ipsResponsive_noFloat ipsResponsive_hidePhone">
			

<div data-followApp=\'forums\' data-followArea=\'topic\' data-followID=\'60351\' data-controller=\'core.front.core.followButton\'>
	
		<span class=\'ipsType_light ipsType_blendLinks ipsResponsive_hidePhone ipsResponsive_inline\'><i class=\'fa fa-info-circle\'></i> <a href=\'https://www.portugal-a-programar.pt/login/\' title=\'Go to the sign in page\'>Sign in to follow this</a>  </span>
	
	

	<div class="ipsFollow ipsPos_middle ipsButton ipsButton_link ipsButton_verySmall " data-role="followButton">
		
			<a href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' class=\'ipsType_blendLinks ipsType_noUnderline\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>Followers</a>
			<a class=\'ipsCommentCount\' href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>1</a>
		
	</div>

</div>
		</div>
		<div class="ipsPos_right ipsResponsive_noFloat ipsResponsive_hidePhone">
			



		</div>
		
	
	<div class="ipsPhotoPanel ipsPhotoPanel_small ipsPhotoPanel_notPhone ipsClearfix">
		

	<span class=\'ipsUserPhoto ipsUserPhoto_small \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

		<div>
			<h1 class="ipsType_pageTitle ipsContained_container">
				

				
				
					<span class="ipsType_break ipsContained">


	 


						<span>Restringir a um IP</span>
					</span>
				
			</h1>
			
			<p class="ipsType_reset ipsType_blendLinks ipsSpacer_bottom ipsSpacer_half">
				<span class="ipsType_normal">
				
					By 

Mark,  <span class="ipsType_light"><time datetime=\'2013-05-02T19:52:09Z\' title=\'05/02/2013 07:52  PM\' data-short=\'7 yr\'>May 2, 2013</time> in <a href="https://www.portugal-a-programar.pt/forums/forum/69-php/">PHP</a></span>
				
				</span>
				<br></p>
			
				


	
		<ul class=\'ipsTags ipsList_inline \' >
			
				
					


<li >
	<a href="https://www.portugal-a-programar.pt/tags/php/" class=\'ipsTag\' title="Find other content tagged with \'php\'" rel="tag"><span>php</span></a>
	
</li>
				
			
			
		</ul>
		
	

			
		</div>
	</div>
</div>








<div class="ipsClearfix">
	
		<div class="ipsPos_left ipsType_light ipsResponsive_hidePhone">
			
			
<div  class=\'ipsClearfix ipsRating  ipsRating_veryLarge\'>
	
	<ul class=\'ipsRating_collective\'>
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
			
				<li class=\'ipsRating_off\'>
					<i class=\'fa fa-star\'></i>
				</li>
			
		
	</ul>
</div>
		</div>
	
	
	<ul class="ipsToolList ipsToolList_horizontal ipsClearfix ipsSpacer_both ipsResponsive_hidePhone">
		
		
		
	</ul>
</div>

<div data-controller="core.front.core.commentFeed,forums.front.topic.view, core.front.core.ignoredComments" data-autopoll data-baseurl="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/" data-lastpage data-feedid="topic-60351" class="cTopic ipsClear ipsSpacer_top">
	
			
	

	

<div data-controller=\'core.front.core.recommendedComments\' data-url=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?recommended=comments\' class=\'ipsAreaBackground ipsPad ipsBox ipsBox_transparent ipsSpacer_bottom ipsRecommendedComments ipsHide\'>
	<div data-role="recommendedComments">
		<h2 class=\'ipsType_sectionHead ipsType_large\'>Recommended Posts</h2>
		
	</div>
</div>
	
	<div id="elPostFeed" data-role="commentFeed" data-controller="core.front.core.moderation" >
		<form action="https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?csrfKey={{csrfKey}}&do=multimodComment" method="post" data-ipspageaction data-role="moderationTools">
			
			
				
					
					
					




<a id="comment-505651"></a>
<article  id="elComment_505651" class="cPost ipsBox  ipsComment  ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone   ">
	

	<div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block">
		<h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line">
			

Mark
			<span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
		</h3>
		<div class="cAuthorPane_photo">
			

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

		</div>
	</div>
	<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break">
<strong>

Mark
			</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
</h3>

		<ul class="cAuthorPane_info ipsList_reset">
			
			
			<li class="cAuthorPane_photo">
				

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

			</li>
			
			
				<li>

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</li>
				
				
				

			
		</ul></aside><div class="ipsColumn ipsColumn_fluid">
		

<div id=\'comment-505651_wrap\' data-controller=\'core.front.core.comment\' data-commentApp=\'forums\' data-commentType=\'forums\' data-commentID="505651" data-quoteData=\'{"userid":28027,"username":"Mark","timestamp":1367524329,"contentapp":"forums","contenttype":"forums","contentid":60351,"contentclass":"forums_Topic","contentcommentid":505651}\' class=\'ipsComment_content ipsType_medium  ipsFaded_withHover\'>
	

	<div class=\'ipsComment_meta ipsType_light\'>
		<div class=\'ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks\'>
			<ul class=\'ipsList_inline ipsComment_tools\'>
				
					<li><a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=reportComment&comment=505651\' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size=\'medium\' data-ipsDialog-flashMessage=\'Thanks for your report.\' data-ipsDialog-title="Report post" data-action=\'reportComment\' title=\'Report this content\' class=\'ipsFaded ipsFaded_more\'><span class=\'ipsResponsive_showPhone ipsResponsive_inline\'><i class=\'fa fa-flag\'></i></span><span class=\'ipsResponsive_hidePhone ipsResponsive_inline\'>Report post</span></a></li>
				
				
				
					<li><a class=\'ipsType_blendLinks\' href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/\' data-ipsTooltip title=\'Share this post\' data-ipsMenu data-ipsMenu-closeOnClick=\'false\' id=\'elSharePost_505651\' data-role=\'shareComment\'><i class=\'fa fa-share-alt\'></i></a></li>
				
				
			</ul>
		</div>

		<div class=\'ipsType_reset\'>
			<a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505651\' class=\'ipsType_blendLinks\'>Posted <time datetime=\'2013-05-02T19:52:09Z\' title=\'05/02/2013 07:52  PM\' data-short=\'7 yr\'>May 2, 2013</time></a>
			<span class=\'ipsResponsive_hidePhone\'>
				
				
			</span>
		</div>
	</div>

	


	<div class=\'cPost_contentWrap ipsPad\'>
		
		<div data-role=\'commentContent\' class=\'ipsType_normal ipsType_richText ipsContained\' data-controller=\'core.front.core.lightboxedImages\'>
			<p>Boas pessoal, a minha questão é simples: Tenho uma página de administração e gostaria que apenas o meu IP conseguisse acedê-la, os outros seriam reencaminhados para o 404.</p>
<p>Que código tenho de adicionar?</p>
<p> <img alt=":thumbsup:" data-emoticon="true" height="20" src="https://www.portugal-a-programar.pt/public/emoticons/default_thumbsup.png" srcset="https://www.portugal-a-programar.pt/public/emoticons/thumbsup@2x.png 2x" title=":thumbsup:" width="20"></p>

			
		</div>

		<div class=\'ipsItemControls\'>
			
				
					

	<div data-controller=\'core.front.core.reaction\' class=\'ipsItemControls_right ipsClearfix \'>	
		<div class=\'ipsReact ipsPos_right\'>
			
				
				<div class=\'ipsReact_blurb ipsHide\' data-role=\'reactionBlurb\'>
					
				</div>
			
			
			
		</div>
	</div>

				
			
			<ul class=\'ipsComment_controls ipsClearfix ipsItemControls_left\' data-role="commentControls">
				
					
					
					
				
				<li class=\'ipsHide\' data-role=\'commentLoading\'>
					<span class=\'ipsLoading ipsLoading_tiny ipsLoading_noAnim\'></span>
				</li>
			</ul>
		</div>

		
	</div>

	<div class=\'ipsMenu ipsMenu_wide ipsHide cPostShareMenu\' id=\'elSharePost_505651_menu\'>
		<div class=\'ipsPad\'>
			<h4 class=\'ipsType_sectionHead\'>Share this post</h4>
			<hr class=\'ipsHr\'>
			<h5 class=\'ipsType_normal ipsType_reset\'>Link to post</h5>
			
			<input type=\'text\' value=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/\' class=\'ipsField_fullWidth\'>
			

			
				<h5 class=\'ipsType_normal ipsType_reset ipsSpacer_top\'>Share on other sites</h5>
				

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505651&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505651" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505651&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505651&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>

			
		</div>
	</div>
</div>
	</div>
</article>

					
				
					
					
					




<a id="comment-505654"></a>
<article  id="elComment_505654" class="cPost ipsBox  ipsComment  ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone   ">
    
    
  
	

	<div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block">
		<h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line">
			

HappyHippyHippo
			<span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_positive\'>
	
			<i class=\'fa fa-plus-circle\'></i> 1,165
	
		</span>
	
</span>
		</h3>
		<div class="cAuthorPane_photo">
			

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/uploads/users/profile/photo-thumb-22715.png\' alt=\'HappyHippyHippo\' loading=\'lazy\'>
	</span>

		</div>
	</div>
	<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break">
<strong>

HappyHippyHippo
			</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_positive\'>
	
			<i class=\'fa fa-plus-circle\'></i> 1,165
	
		</span>
	
</span>
</h3>

		<ul class="cAuthorPane_info ipsList_reset">
			
			
			<li class="cAuthorPane_photo">
				

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/uploads/users/profile/photo-thumb-22715.png\' alt=\'HappyHippyHippo\' loading=\'lazy\'>
	</span>

			</li>
			
			
				<li>

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_positive\'>
	
			<i class=\'fa fa-plus-circle\'></i> 1,165
	
		</span>
	
</li>
				
				
				

	
	<li class=\'ipsResponsive_hidePhone ipsType_break pap-profile-list\'>
		
<a href="http://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=redirect&url=http://happyhippyhippo.com&%23039;_blank&%23039;%253Ehttp://happyhippyhippo.com%253C/a%253E%253C/div%253E&key=02d9dcb0478009334f03459584b1ee64362956ff995ec3a0de54aa9ad3335c5d&resource=&%23039;%20target=&%23039;%3Ehttp://happyhippyhippo.com%3C/a%3E%3C/div%3E%3C/a%3E%3C/div%3E" title="Website" target="_blank" class="pap-profile-icon-link" rel="nofollow"><i class="fa fa-globe fa-2x"></i></a>
	</li>
	
	<li class=\'ipsResponsive_hidePhone ipsType_break pap-profile-list\'>
		
<a href="http://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=redirect&url=https://github.com/happyhippyhippo&%23039;_blank&%23039;%253Ehttps://github.com/happyhippyhippo%253C/a%253E%253C/div%253E&key=ee03b8085adf9924624b3809fd2ad96a966486c447db747b436849e76d010e7b&resource=&%23039;%20target=&%23039;%3Ehttps://github.com/happyhippyhippo%3C/a%3E%3C/div%3E%3C/a%3E%3C/div%3E" title="GitHub" target="_blank" class="pap-profile-icon-link" rel="nofollow"><i class="fa fa-github-square fa-2x"></i></a>
	</li>
	
	<li class=\'ipsResponsive_hidePhone ipsType_break pap-profile-list\'>
		
<a href="http://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=redirect&url=https://twitter.com/HappyHippyHippo&%23039;_blank&%23039;%253Ehttps://twitter.com/HappyHippyHippo%253C/a%253E%253C/div%253E&key=46f272ad3f28723375c02cd2e02d8c473dbd1f7f4ad7bda8c1ea9546368aa829&resource=&%23039;%20target=&%23039;%3Ehttps://twitter.com/HappyHippyHippo%3C/a%3E%3C/div%3E%3C/a%3E%3C/div%3E" title="Twitter" target="_blank" class="pap-profile-icon-link" rel="nofollow"><i class="fa fa-twitter-square fa-2x"></i></a>
	</li>
	

			
		</ul></aside><div class="ipsColumn ipsColumn_fluid">
		

<div id=\'comment-505654_wrap\' data-controller=\'core.front.core.comment\' data-commentApp=\'forums\' data-commentType=\'forums\' data-commentID="505654" data-quoteData=\'{"userid":22715,"username":"HappyHippyHippo","timestamp":1367525167,"contentapp":"forums","contenttype":"forums","contentid":60351,"contentclass":"forums_Topic","contentcommentid":505654}\' class=\'ipsComment_content ipsType_medium  ipsFaded_withHover\'>
	

	<div class=\'ipsComment_meta ipsType_light\'>
		<div class=\'ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks\'>
			<ul class=\'ipsList_inline ipsComment_tools\'>
				
					<li><a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=reportComment&comment=505654\' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size=\'medium\' data-ipsDialog-flashMessage=\'Thanks for your report.\' data-ipsDialog-title="Report post" data-action=\'reportComment\' title=\'Report this content\' class=\'ipsFaded ipsFaded_more\'><span class=\'ipsResponsive_showPhone ipsResponsive_inline\'><i class=\'fa fa-flag\'></i></span><span class=\'ipsResponsive_hidePhone ipsResponsive_inline\'>Report post</span></a></li>
				
				
				
					<li><a class=\'ipsType_blendLinks\' href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505654\' data-ipsTooltip title=\'Share this post\' data-ipsMenu data-ipsMenu-closeOnClick=\'false\' id=\'elSharePost_505654\' data-role=\'shareComment\'><i class=\'fa fa-share-alt\'></i></a></li>
				
				
			</ul>
		</div>

		<div class=\'ipsType_reset\'>
			<a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505654\' class=\'ipsType_blendLinks\'>Posted <time datetime=\'2013-05-02T20:06:07Z\' title=\'05/02/2013 08:06  PM\' data-short=\'7 yr\'>May 2, 2013</time></a>
			<span class=\'ipsResponsive_hidePhone\'>
				
				
			</span>
		</div>
	</div>

	


	<div class=\'cPost_contentWrap ipsPad\'>
		
		<div data-role=\'commentContent\' class=\'ipsType_normal ipsType_richText ipsContained\' data-controller=\'core.front.core.lightboxedImages\'>
			<p>o mais simples é por htaccess</p>
<p>tens aqui um exemplo de como fazer o inverso, mas as alterações são triviais para permitir fazer o que pretendes</p>
<p><a href="http://www.javascriptkit.com/howto/htaccess5.shtml" rel="external nofollow">http://www.javascriptkit.com/howto/htaccess5.shtml</a></p>

			
		</div>

		<div class=\'ipsItemControls\'>
			
				
					

	<div data-controller=\'core.front.core.reaction\' class=\'ipsItemControls_right ipsClearfix \'>	
		<div class=\'ipsReact ipsPos_right\'>
			
				
				<div class=\'ipsReact_blurb \' data-role=\'reactionBlurb\'>
					
						

	
	<ul class=\'ipsReact_reactions\'>
	
		
			
			<li class=\'ipsReact_reactCount\'>
				
					<span data-ipsTooltip title="Vote">
				
						<span>
							<img src=\'https://www.portugal-a-programar.pt/public/icons/reactions/up.png\' alt="Vote">
						</span>
						<span>
							1
						</span>
				
					</span>
				
			</li>
		
	
	</ul>

<div class=\'ipsReact_overview ipsType_blendLinks\'>
	
	
</div>
					
				</div>
			
			
			
		</div>
	</div>

				
			
			<ul class=\'ipsComment_controls ipsClearfix ipsItemControls_left\' data-role="commentControls">
				
					
					
					
				
				<li class=\'ipsHide\' data-role=\'commentLoading\'>
					<span class=\'ipsLoading ipsLoading_tiny ipsLoading_noAnim\'></span>
				</li>
			</ul>
		</div>

		
			

	<div data-role="memberSignature" class=\'ipsResponsive_hidePhone\'>
		<hr class=\'ipsHr\'>
			

		<div class=\'ipsType_light ipsType_richText\' data-ipsLazyLoad>
			<table style="width:100%"><tbody><tr><td>
				IRC : sim, é algo que ainda existe >> #<span style="color:#00FF00;">p</span><span style="color:#daa520;">@</span><span style="color:#FF0000;">p</span>
			</td>
			<td>
				<div style="text-align:right;">
					<a href="https://github.com/HappyHippyHippo/portugol_plus" rel="external nofollow">Portugol Plus</a>
				</div>
			</td>
		</tr></tbody></table>
		</div>
	</div>

		
	</div>

	<div class=\'ipsMenu ipsMenu_wide ipsHide cPostShareMenu\' id=\'elSharePost_505654_menu\'>
		<div class=\'ipsPad\'>
			<h4 class=\'ipsType_sectionHead\'>Share this post</h4>
			<hr class=\'ipsHr\'>
			<h5 class=\'ipsType_normal ipsType_reset\'>Link to post</h5>
			
			<input type=\'text\' value=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505654\' class=\'ipsField_fullWidth\'>
			

			
				<h5 class=\'ipsType_normal ipsType_reset ipsSpacer_top\'>Share on other sites</h5>
				

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505654&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505654" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505654&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505654&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>

			
		</div>
	</div>
</div>
	</div>
</article>

					
				
					
					
					




<a id="comment-505656"></a>
<article  id="elComment_505656" class="cPost ipsBox  ipsComment  ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone   ">
    
    
  
	

	<div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block">
		<h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line">
			

Mark
			<span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
		</h3>
		<div class="cAuthorPane_photo">
			

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

		</div>
	</div>
	<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break">
<strong>

Mark
			</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">  

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</span>
</h3>

		<ul class="cAuthorPane_info ipsList_reset">
			
			
			<li class="cAuthorPane_photo">
				

	<span class=\'ipsUserPhoto ipsUserPhoto_large \'>
		<img src=\'https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png\' alt=\'Mark\' loading=\'lazy\'>
	</span>

			</li>
			
			
				<li>

	
		<span title="Member\'s total reputation" data-ipsTooltip class=\'ipsRepBadge ipsRepBadge_neutral\'>
	
			<i class=\'fa fa-circle\'></i> 0
	
		</span>
	
</li>
				
				
				

			
		</ul></aside><div class="ipsColumn ipsColumn_fluid">
		

<div id=\'comment-505656_wrap\' data-controller=\'core.front.core.comment\' data-commentApp=\'forums\' data-commentType=\'forums\' data-commentID="505656" data-quoteData=\'{"userid":28027,"username":"Mark","timestamp":1367525601,"contentapp":"forums","contenttype":"forums","contentid":60351,"contentclass":"forums_Topic","contentcommentid":505656}\' class=\'ipsComment_content ipsType_medium  ipsFaded_withHover\'>
	

	<div class=\'ipsComment_meta ipsType_light\'>
		<div class=\'ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks\'>
			<ul class=\'ipsList_inline ipsComment_tools\'>
				
					<li><a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=reportComment&comment=505656\' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size=\'medium\' data-ipsDialog-flashMessage=\'Thanks for your report.\' data-ipsDialog-title="Report post" data-action=\'reportComment\' title=\'Report this content\' class=\'ipsFaded ipsFaded_more\'><span class=\'ipsResponsive_showPhone ipsResponsive_inline\'><i class=\'fa fa-flag\'></i></span><span class=\'ipsResponsive_hidePhone ipsResponsive_inline\'>Report post</span></a></li>
				
				
				
					<li><a class=\'ipsType_blendLinks\' href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505656\' data-ipsTooltip title=\'Share this post\' data-ipsMenu data-ipsMenu-closeOnClick=\'false\' id=\'elSharePost_505656\' data-role=\'shareComment\'><i class=\'fa fa-share-alt\'></i></a></li>
				
				
			</ul>
		</div>

		<div class=\'ipsType_reset\'>
			<a href=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505656\' class=\'ipsType_blendLinks\'>Posted <time datetime=\'2013-05-02T20:13:21Z\' title=\'05/02/2013 08:13  PM\' data-short=\'7 yr\'>May 2, 2013</time></a>
			<span class=\'ipsResponsive_hidePhone\'>
				
					(edited)
				
				
			</span>
		</div>
	</div>

	


	<div class=\'cPost_contentWrap ipsPad\'>
		
		<div data-role=\'commentContent\' class=\'ipsType_normal ipsType_richText ipsContained\' data-controller=\'core.front.core.lightboxedImages\'>
			<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="60351" data-ipsquote-contentclass="forums_Topic"><div>
<p>o mais simples é por htaccess</p>
<p>tens aqui um exemplo de como fazer o inverso, mas as alterações são triviais para permitir fazer o que pretendes</p>
<p><a href="http://www.javascriptkit.com/howto/htaccess5.shtml" rel="external nofollow">http://www.javascriptkit.com/howto/htaccess5.shtml</a></p>
<p></p>
</div></blockquote>
<p>Não sabia que dava por .htaccess, muito obrigado! O código acabou por ficar assim:</p>
<p></p>
<pre class="ipsCode prettyprint">
ErrorDocument 403 /nao_autorizado.php
order deny,allow
deny from all
allow from 127.0.0.1
</pre>
<div></div>
<p></p>
<p>Quem não vier do ip 127.0.0.1 é reencaminhado para a página nao_autorizado.php</p>

			
				

<span class=\'ipsType_reset ipsType_medium ipsType_light\' data-excludequote>
	<strong>Edited <time datetime=\'2013-05-03T13:55:58Z\' title=\'05/03/2013 01:55  PM\' data-short=\'7 yr\'>May 3, 2013</time> by brunoais</strong>
	
		<br>geshi(?)
	
	
</span>
			
		</div>

		<div class=\'ipsItemControls\'>
			
				
					

	<div data-controller=\'core.front.core.reaction\' class=\'ipsItemControls_right ipsClearfix \'>	
		<div class=\'ipsReact ipsPos_right\'>
			
				
				<div class=\'ipsReact_blurb ipsHide\' data-role=\'reactionBlurb\'>
					
				</div>
			
			
			
		</div>
	</div>

				
			
			<ul class=\'ipsComment_controls ipsClearfix ipsItemControls_left\' data-role="commentControls">
				
					
					
					
				
				<li class=\'ipsHide\' data-role=\'commentLoading\'>
					<span class=\'ipsLoading ipsLoading_tiny ipsLoading_noAnim\'></span>
				</li>
			</ul>
		</div>

		
	</div>

	<div class=\'ipsMenu ipsMenu_wide ipsHide cPostShareMenu\' id=\'elSharePost_505656_menu\'>
		<div class=\'ipsPad\'>
			<h4 class=\'ipsType_sectionHead\'>Share this post</h4>
			<hr class=\'ipsHr\'>
			<h5 class=\'ipsType_normal ipsType_reset\'>Link to post</h5>
			
			<input type=\'text\' value=\'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment&comment=505656\' class=\'ipsField_fullWidth\'>
			

			
				<h5 class=\'ipsType_normal ipsType_reset ipsSpacer_top\'>Share on other sites</h5>
				

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F%3Fdo%3DfindComment%26comment%3D505656&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505656" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505656&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/?do=findComment%26comment=505656&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>

			
		</div>
	</div>
</div>
	</div>
</article>

					
				
			
			
<input type="hidden" name="csrfKey" value="{{csrfKey}}" />


		</form>
	</div>

	

	
		<a id="replyForm"></a>
		<div data-role="replyArea" class="cTopicPostArea ipsAreaBackground ipsPad cTopicPostArea_noSize ipsSpacer_top">
			
				
				

<div data-controller="core.global.core.login">
	<input type="hidden" name="csrfKey" value="{{csrfKey}}">
	
		<div class=\'ipsType_center ipsPad cGuestTeaser\'>
			
				<h2 class=\'ipsType_pageTitle\'>Create an account or sign in to comment</h2>
				<p class=\'ipsType_light ipsType_normal ipsType_reset ipsSpacer_top ipsSpacer_half\'>You need to be a member in order to leave a comment</p>
			
	
			<div class=\'ipsBox ipsPad ipsSpacer_top\'>
				<div class=\'ipsGrid ipsGrid_collapsePhone\'>
					<div class=\'ipsGrid_span6 cGuestTeaser_left\'>
						<h2 class=\'ipsType_sectionHead\'>Create an account</h2>
						<p class=\'ipsType_normal ipsType_reset ipsType_light ipsSpacer_bottom\'>Sign up for a new account in our community. It\'s easy!</p>
						
							<a href=\'https://www.portugal-a-programar.pt/register/\' class=\'ipsButton ipsButton_primary ipsButton_small\' >
						
						Register a new account</a>
					</div>
					<div class=\'ipsGrid_span6 cGuestTeaser_right\'>
						<h2 class=\'ipsType_sectionHead\'>Sign in</h2>
						<p class=\'ipsType_normal ipsType_reset ipsType_light ipsSpacer_bottom\'>Already have an account? Sign in here.</p>
						<a href=\'https://www.portugal-a-programar.pt/login/?ref=aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8jcmVwbHlGb3Jt\' data-ipsDialog data-ipsDialog-size=\'medium\' data-ipsDialog-title="Sign In Now" class=\'ipsButton ipsButton_primary ipsButton_small\'>Sign In Now</a>
					</div>
				</div>
			</div>
		</div>
	
</div>
			
		</div>
	

	
		<div class="ipsResponsive_noFloat ipsResponsive_showPhone ipsResponsive_block ipsSpacer_top">
			

<div data-followApp=\'forums\' data-followArea=\'topic\' data-followID=\'60351\' data-controller=\'core.front.core.followButton\'>
	
		<span class=\'ipsType_light ipsType_blendLinks ipsResponsive_hidePhone ipsResponsive_inline\'><i class=\'fa fa-info-circle\'></i> <a href=\'https://www.portugal-a-programar.pt/login/\' title=\'Go to the sign in page\'>Sign in to follow this</a>  </span>
	
	

	<div class="ipsFollow ipsPos_middle ipsButton ipsButton_link ipsButton_verySmall " data-role="followButton">
		
			<a href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' class=\'ipsType_blendLinks ipsType_noUnderline\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>Followers</a>
			<a class=\'ipsCommentCount\' href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=notifications&do=followers&follow_app=forums&follow_area=topic&follow_id=60351\' title=\'See who follows this\' data-ipsTooltip data-ipsDialog data-ipsDialog-size=\'narrow\' data-ipsDialog-title=\'Who follows this\'>1</a>
		
	</div>

</div>
		</div>
		<div class="ipsResponsive_noFloat ipsResponsive_showPhone ipsResponsive_block ipsSpacer_top">
			



		</div>
	
</div>



<div class="ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top ipsContained">
	<div class="ipsGrid_span6 ipsType_left ipsPager_prev ipsPager_noDesc">
		
			<a href="https://www.portugal-a-programar.pt/forums/forum/69-php/" title="Go to PHP" rel="parent">
				<span class="ipsPager_type">Go To Topic Listing</span>
			</a>
		
	</div>
	
</div>


	<hr class="ipsHr">
	

	<ul class=\'ipsList_inline ipsList_noSpacing ipsClearfix\' data-controller="core.front.core.sharelink">
		
			<li>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F&title=Restringir+a+um+IP" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title=\'Share on LinkedIn\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-linkedin"></i>
</a></li>
		
			<li>
<a href="http://twitter.com/share?text=Restringir%20a%20um%20IP&url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title=\'Share on Twitter\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-twitter"></i>
</a></li>
		
			<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title=\'Share on Facebook\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-facebook"></i>
</a></li>
		
			<li>
<a href="http://www.reddit.com/submit?url=https%3A%2F%2Fwww.portugal-a-programar.pt%2Fforums%2Ftopic%2F60351-restringir-a-um-ip%2F&title=Restringir+a+um+IP" class="cShareLink cShareLink_reddit" target="_blank" title=\'Share on Reddit\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-reddit"></i>
</a></li>
		
			<li>
<a href="http://digg.com/submit?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/" class="cShareLink cShareLink_digg" target="_blank" data-role="shareLink" title=\'Share on Digg\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-digg"></i>
</a></li>
		
			<li>
<a href="https://del.icio.us/save?jump=close&noui=1&v=5&provider=Portugal-a-Programar&url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/&title=Restringir%20a%20um%20IP" class="cShareLink cShareLink_delicious" target="_blank" data-role=\'shareLink\' title=\'Save to Delicious\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-delicious"></i>
</a></li>
		
			<li>
<a href="http://pinterest.com/pin/create/button/?url=https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/&media=https://www.portugal-a-programar.pt/public/themes/monthly_2017_08/pap-logo.jpg.e3b2b173c0e7206bab364563a0f7ba46.jpg" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title=\'Share on Pinterest\' data-ipsTooltip rel=\'noopener\'>
	<i class="fa fa-pinterest"></i>
</a></li>
		
	</ul>




						


					</div>
					


					
<nav class=\'ipsBreadcrumb ipsBreadcrumb_top ipsFaded_withHover\'>
	

	<ul class=\'ipsList_inline ipsPos_right\'>
		
		<li >
			<a data-action="defaultStream" class=\'ipsType_light \'  href=\'https://www.portugal-a-programar.pt/discover/\'><i class=\'icon-newspaper\'></i> <span>All Activity</span></a>
		</li>
		
	</ul>

	<ul data-role="breadcrumbList">
		<li>
			<a title="Home" href=\'https://www.portugal-a-programar.pt/\'>
				<span><i class=\'fa fa-home\'></i> Home <i class=\'fa fa-angle-right\'></i></span>
			</a>
		</li>
		
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/\'>
						<span>Forums <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/7-desenvolvimento-orientado-para-web/\'>
						<span>Desenvolvimento Orientado para Web <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'https://www.portugal-a-programar.pt/forums/forum/69-php/\'>
						<span>PHP <i class=\'fa fa-angle-right\'></i></span>
					</a>
				
			</li>
		
			<li>
				
					<a href=\'.\'><span>Restringir a um IP</span></a>
				
			</li>
		
	</ul>
</nav>
				</div>
			</div>
			
		</main>
		<footer id=\'ipsLayout_footer\' class=\'ipsClearfix\'>
			<div class=\'ipsLayout_container\'>
				
				

<ul id=\'elFooterSocialLinks\' class=\'ipsList_inline ipsType_center ipsSpacer_top\'>
	
</ul>


<ul class=\'ipsList_inline ipsType_center ipsSpacer_top\' id="elFooterLinks">
	
	
		<li>
			<a href=\'#elNavLang_menu\' id=\'elNavLang\' data-ipsMenu data-ipsMenu-above>Language <i class=\'fa fa-caret-down\'></i></a>
			<ul id=\'elNavLang_menu\' class=\'ipsMenu ipsMenu_selectable ipsHide\'>
			
				<li class=\'ipsMenu_item ipsMenu_itemChecked\'>
					<form action="//www.portugal-a-programar.pt/language/?csrfKey={{csrfKey}}" method="post">
					<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8=">
					<button type=\'submit\' name=\'id\' value=\'1\' class=\'ipsButton ipsButton_link ipsButton_link_secondary\'><i class=\'ipsFlag ipsFlag-us\'></i> English (USA) </button>
					</form>
				</li>
			
				<li class=\'ipsMenu_item\'>
					<form action="//www.portugal-a-programar.pt/language/?csrfKey={{csrfKey}}" method="post">
					<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQvZm9ydW1zL3RvcGljLzYwMzUxLXJlc3RyaW5naXItYS11bS1pcC8=">
					<button type=\'submit\' name=\'id\' value=\'2\' class=\'ipsButton ipsButton_link ipsButton_link_secondary\'><i class=\'ipsFlag ipsFlag-pt\'></i> Português (Default)</button>
					</form>
				</li>
			
			</ul>
		</li>
	
	
	
	
		<li><a href=\'https://www.portugal-a-programar.pt/privacy/\'>Privacy Policy</a></li>
	
    
        <li><a href=\'https://www.portugal-a-programar.pt/terms/\'>Terms of Use</a></li>
  	
    <li><a href=\'/help/\'>Help</a></li>
	
</ul>	


<p id=\'elCopyright\'>
	<span id=\'elCopyright_userLine\'></span>
	<a rel=\'nofollow\' title=\'Invision Community\' href=\'https://www.invisioncommunity.com/\'>Powered by Invision Community</a>
</p>
                <p id=\'elHost\'><a rel="nofollow" href=\'https://www.linode.com/?r=01af7bd509ed60a89ff2778a8058cfc0ef03300e\'>Hosted by Linode</a></p>
			</div>
		</footer>
		
<div id=\'elMobileDrawer\' class=\'ipsDrawer ipsHide\'>
	<a href=\'#\' class=\'ipsDrawer_close\' data-action=\'close\'><span>×</span></a>
	<div class=\'ipsDrawer_menu\'>
		<div class=\'ipsDrawer_content\'>
			

			<div class=\'ipsSpacer_bottom ipsPad\'>
				<ul class=\'ipsToolList ipsToolList_vertical\'>
					
						<li>
							<a href=\'https://www.portugal-a-programar.pt/login/\' id=\'elSigninButton_mobile\' class=\'ipsButton ipsButton_light ipsButton_small ipsButton_fullWidth\'>Existing user? Sign In</a>
						</li>
						
							<li>
								
									<a href=\'https://www.portugal-a-programar.pt/register/\'  id=\'elRegisterButton_mobile\' class=\'ipsButton ipsButton_small ipsButton_fullWidth ipsButton_important\'>Sign Up</a>
								
							</li>
						
					

					
				</ul>
			</div>

			<ul class=\'ipsDrawer_list\'>
				

				
				
				
				
					
						
						
							<li class=\'ipsDrawer_itemParent\'>
								<h4 class=\'ipsDrawer_title\'><a href=\'#\'>Home</a></h4>
								<ul class=\'ipsDrawer_list\'>
									<li data-action="back"><a href=\'#\'>Back</a></li>
									
										<li><a href=\'https://www.portugal-a-programar.pt/portal/\'>Home</a></li>
									
									
									
										


	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/forums/\' >
					Forums
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/blogs/\' >
					Blogs
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/files/\' >
					Downloads
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/guidelines/\' >
					Guidelines
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/staff/\' >
					Staff
				</a>
			</li>
		
	

	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/leaderboard/\' >
					Leaderboard
				</a>
			</li>
		
	

										
								</ul>
							</li>
						
					
				
					
						
						
							<li class=\'ipsDrawer_itemParent\'>
								<h4 class=\'ipsDrawer_title\'><a href=\'#\'>Activity</a></h4>
								<ul class=\'ipsDrawer_list\'>
									<li data-action="back"><a href=\'#\'>Back</a></li>
									
										<li><a href=\'https://www.portugal-a-programar.pt/discover/\'>Activity</a></li>
									
									
									
										


	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/discover/\' >
					All Activity
				</a>
			</li>
		
	

	

	

	

	
		
			<li>
				<a href=\'https://www.portugal-a-programar.pt/search/\' >
					Search
				</a>
			</li>
		
	

										
								</ul>
							</li>
						
					
				
					
						
						
							<li class=\'ipsDrawer_itemParent\'>
								<h4 class=\'ipsDrawer_title\'><a href=\'#\'>Revista PROGRAMAR</a></h4>
								<ul class=\'ipsDrawer_list\'>
									<li data-action="back"><a href=\'#\'>Back</a></li>
									
										<li><a href=\'https://www.revista-programar.info/\'>Revista PROGRAMAR</a></li>
									
									
									
										


	
		
			<li>
				<a href=\'https://www.revista-programar.info/edicoes/\' target=\'_blank\' rel="noopener">
					Editions
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.revista-programar.info/participar/\' target=\'_blank\' rel="noopener">
					Contribute
				</a>
			</li>
		
	

	
		
			<li>
				<a href=\'https://www.revista-programar.info/lists/?p=subscribe&id=1\' target=\'_blank\' rel="noopener">
					Newsletter
				</a>
			</li>
		
	

										
								</ul>
							</li>
						
					
				
					
						
						
							<li><a href=\'https://wiki.portugal-a-programar.pt/\' target=\'_blank\' rel="noopener">Wiki</a></li>
						
					
				
					
						
						
							<li><a href=\'https://chat.ptnet.org/p@p\' target=\'_blank\' rel="noopener">IRC</a></li>
						
					
				
			</ul>
		</div>
	</div>
</div>

<div id=\'elMobileCreateMenuDrawer\' class=\'ipsDrawer ipsHide\'>
	<a href=\'#\' class=\'ipsDrawer_close\' data-action=\'close\'><span>×</span></a>
	<div class=\'ipsDrawer_menu\'>
		<div class=\'ipsDrawer_content ipsSpacer_bottom ipsPad\'>
			<ul class=\'ipsDrawer_list\'>
				<li class="ipsDrawer_listTitle ipsType_reset">Create New...</li>
				
			</ul>
		</div>
	</div>
</div>
		







	




	





<div id=\'elGuestTerms\' class=\'ipsPad_half ipsJS_hide\' data-role=\'guestTermsBar\' data-controller=\'core.front.core.guestTerms\'>
	<div class=\'ipsLayout_container\'>
		<div class=\'ipsGrid ipsGrid_collapsePhone\'>
			<div class=\'ipsGrid_span10\'>
				<h2 class=\'ipsType_sectionHead\'>Important Information</h2>
				<p class=\'ipsType_reset ipsType_medium cGuestTerms_contents\'>By using this site you accept our <a href=\'https://www.portugal-a-programar.pt/terms/\'>Terms of Use</a> and <a href=\'https://www.portugal-a-programar.pt/privacy/\'>Privacy Policy</a>. We have placed <a href=\'https://www.portugal-a-programar.pt/cookies/\'>cookies</a> on your device to help make this website better. You can <a href=\'https://www.portugal-a-programar.pt/cookies/\'>adjust your cookie settings</a>, otherwise we\'ll assume you\'re okay to continue.</p>
			</div>
			<div class=\'ipsGrid_span2\'>
				<a href=\'https://www.portugal-a-programar.pt/index.php?app=core&module=system&controller=terms&do=dismiss&ref=aHR0cHM6Ly93d3cucG9ydHVnYWwtYS1wcm9ncmFtYXIucHQv&csrfKey={{csrfKey}}\' rel=\'nofollow\' class=\'ipsButton ipsButton_veryLight ipsButton_large ipsButton_fullWidth\' data-action=\'dismissTerms\'><i class=\'fa fa-check\'></i>  I accept</a>
			</div>
		</div>
	</div>
</div>
		

	<script type=\'text/javascript\'>
		var ipsDebug = false;		
	
		var CKEDITOR_BASEPATH = \'//www.portugal-a-programar.pt/applications/core/interface/ckeditor/ckeditor/\';
	
		var ipsSettings = {
			
			
			cookie_path: "/",
			
			cookie_prefix: "ips4_",
			
			
			cookie_ssl: true,
			
			upload_imgURL: "",
			message_imgURL: "",
			notification_imgURL: "",
			baseURL: "//www.portugal-a-programar.pt/",
			jsURL: "//www.portugal-a-programar.pt/applications/core/interface/js/js.php",
			csrfKey: "{{csrfKey}}",
			antiCache: "90cf7938ca",
			disableNotificationSounds: false,
			useCompiledFiles: true,
			links_external: true,
			memberID: 0,
			lazyLoadEnabled: false,
			blankImg: "//www.portugal-a-programar.pt/applications/core/interface/js/spacer.png",
			analyticsProvider: "none",
			viewProfiles: false,
			mapProvider: \'none\',
			mapApiKey: \'\',
			
		};
	</script>





<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_library.js.5585a12b2f8629144e2b1a75ea799c12.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_js_lang_1.js.75546a2d3bdd00f1dbe2d14e15221796.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_framework.js.471243fb720810e22eb55a5516c69cff.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_core/global_global_core.js.a695aa873bb83c9dbcc327be2c9f0013.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_front.js.31066d673721811b7068fdd9dab2f288.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_forums/front_front_topic.js.830b6149b408950c84165ec835c50bba.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_core/front_front_core.js.e07488fb0c600400559ddc17e5c3aba7.js?v=90cf7938ca\' data-ips></script>


<script type=\'text/javascript\' src=\'https://www.portugal-a-programar.pt/public/themes/javascript_global/root_map.js.10ef3c2cea48289326fef83be98cb555.js?v=90cf7938ca\' data-ips></script>



	<script type=\'text/javascript\'>
		
			ips.setSetting( \'date_format\', jQuery.parseJSON(\'"mm\/dd\/yy"\') );
		
			ips.setSetting( \'date_first_day\', jQuery.parseJSON(\'0\') );
		
			ips.setSetting( \'remote_image_proxy\', jQuery.parseJSON(\'1\') );
		
			ips.setSetting( \'ipb_url_filter_option\', jQuery.parseJSON(\'"black"\') );
		
			ips.setSetting( \'url_filter_any_action\', jQuery.parseJSON(\'"allow"\') );
		
			ips.setSetting( \'bypass_profanity\', jQuery.parseJSON(\'0\') );
		
			ips.setSetting( \'emoji_style\', jQuery.parseJSON(\'"native"\') );
		
			ips.setSetting( \'emoji_shortcodes\', jQuery.parseJSON(\'"1"\') );
		
			ips.setSetting( \'emoji_ascii\', jQuery.parseJSON(\'"1"\') );
		
			ips.setSetting( \'emoji_cache\', jQuery.parseJSON(\'"1563130824"\') );
		
		
	</script>



<script type=\'application/ld+json\'>
{
    "name": "Restringir a um IP",
    "headline": "Restringir a um IP",
    "text": "Boas pessoal, a minha quest\u00e3o \u00e9 simples: Tenho uma p\u00e1gina de administra\u00e7\u00e3o e gostaria que apenas o meu IP conseguisse aced\u00ea-la, os outros seriam reencaminhados para o 404. \nQue c\u00f3digo tenho de adicionar? \n  ",
    "dateCreated": "2013-05-02T19:52:09+0000",
    "datePublished": "2013-05-02T19:52:09+0000",
    "pageStart": 1,
    "pageEnd": 1,
    "image": "https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png",
    "author": {
        "url": "https://www.portugal-a-programar.pt/profile/28027-mark/"
    },
    "interactionStatistic": [
        {
            "@type": "InteractionCounter",
            "interactionType": "http://schema.org/ViewAction",
            "userInteractionCount": 657
        },
        {
            "@type": "InteractionCounter",
            "interactionType": "http://schema.org/CommentAction",
            "userInteractionCount": 3
        },
        {
            "@type": "InteractionCounter",
            "interactionType": "http://schema.org/FollowAction",
            "userInteractionCount": 37
        }
    ],
    "@context": "http://schema.org",
    "@type": "DiscussionForumPosting",
    "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/",
    "isPartOf": {
        "@id": "https://www.portugal-a-programar.pt/#website"
    },
    "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/",
    "discussionUrl": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/",
    "comment": [
        {
            "@type": "Comment",
            "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505651",
            "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505651",
            "author": {
                "@type": "Person",
                "name": "Mark",
                "image": "https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png",
                "url": "https://www.portugal-a-programar.pt/profile/28027-mark/"
            },
            "dateCreated": "2013-05-02T19:52:09+0000",
            "text": "Boas pessoal, a minha quest\u00e3o \u00e9 simples: Tenho uma p\u00e1gina de administra\u00e7\u00e3o e gostaria que apenas o meu IP conseguisse aced\u00ea-la, os outros seriam reencaminhados para o 404. \nQue c\u00f3digo tenho de adicionar? \n  "
        },
        {
            "@type": "Comment",
            "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505654",
            "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505654",
            "author": {
                "@type": "Person",
                "name": "HappyHippyHippo",
                "image": "https://www.portugal-a-programar.pt/uploads/users/profile/photo-thumb-22715.png",
                "url": "https://www.portugal-a-programar.pt/profile/22715-happyhippyhippo/"
            },
            "dateCreated": "2013-05-02T20:06:07+0000",
            "text": "o mais simples \u00e9 por htaccess \ntens aqui um exemplo de como fazer o inverso, mas as altera\u00e7\u00f5es s\u00e3o triviais para permitir fazer o que pretendes \nhttp://www.javascriptkit.com/howto/htaccess5.shtml "
        },
        {
            "@type": "Comment",
            "@id": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505656",
            "url": "https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/#comment-505656",
            "author": {
                "@type": "Person",
                "name": "Mark",
                "image": "https://www.portugal-a-programar.pt/public/themes/set_resources_2/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png",
                "url": "https://www.portugal-a-programar.pt/profile/28027-mark/"
            },
            "dateCreated": "2013-05-02T20:13:21+0000",
            "text": "N\u00e3o sabia que dava por .htaccess, muito obrigado! O c\u00f3digo acabou por ficar assim: \n \n\nErrorDocument 403 /nao_autorizado.php\norder deny,allow\ndeny from all\nallow from 127.0.0.1\n\n\n \nQuem n\u00e3o vier do ip 127.0.0.1 \u00e9 reencaminhado para a p\u00e1gina nao_autorizado.php "
        }
    ]
}	
</script>

<script type=\'application/ld+json\'>
{
    "@context": "http://www.schema.org",
    "publisher": "https://www.portugal-a-programar.pt/#organization",
    "@type": "WebSite",
    "@id": "https://www.portugal-a-programar.pt/#website",
    "mainEntityOfPage": "https://www.portugal-a-programar.pt/",
    "name": "Portugal-a-Programar",
    "url": "https://www.portugal-a-programar.pt/",
    "potentialAction": {
        "type": "SearchAction",
        "query-input": "required name=query",
        "target": "https://www.portugal-a-programar.pt/search/?q={query}"
    },
    "inLanguage": [
        {
            "@type": "Language",
            "name": "English (USA)",
            "alternateName": "en-US"
        },
        {
            "@type": "Language",
            "name": "Portugu\u00eas",
            "alternateName": "pt-PT"
        }
    ]
}	
</script>

<script type=\'application/ld+json\'>
{
    "@context": "http://www.schema.org",
    "@type": "Organization",
    "@id": "https://www.portugal-a-programar.pt/#organization",
    "mainEntityOfPage": "https://www.portugal-a-programar.pt/",
    "name": "Portugal-a-Programar",
    "url": "https://www.portugal-a-programar.pt/",
    "logo": {
        "@type": "ImageObject",
        "@id": "https://www.portugal-a-programar.pt/#logo",
        "url": "https://www.portugal-a-programar.pt/public/themes/monthly_2018_01/pap-banner.png.692a62d6d249b310187aebab094ee0b8.png"
    },
    "sameAs": [
        "https://twitter.com/pt_programar",
        "https://www.facebook.com/portugal.programar"
    ]
}	
</script>

<script type=\'application/ld+json\'>
{
    "@context": "http://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@id": "https://www.portugal-a-programar.pt/forums/",
                "name": "Forums"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@id": "https://www.portugal-a-programar.pt/forums/forum/7-desenvolvimento-orientado-para-web/",
                "name": "Desenvolvimento Orientado para Web"
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@id": "https://www.portugal-a-programar.pt/forums/forum/69-php/",
                "name": "PHP"
            }
        }
    ]
}	
</script>


		
		
		<!--ipsQueryLog-->
		<!--ipsCachingLog-->
		
		
	</body>
</html>', ?, ? )

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 968,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Output/Cache/Database.php',
    'line' => 75,
    'function' => 'replace',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Output/Cache.php',
    'line' => 87,
    'function' => '_set',
    'class' => 'IPS\\Output\\Cache\\_Database',
    'type' => '->',
  ),
  4 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Output/Output.php',
    'line' => 776,
    'function' => 'set',
    'class' => 'IPS\\Output\\_Cache',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 172,
    'function' => 'sendOutput',
    'class' => 'IPS\\_Output',
    'type' => '->',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Standard.php',
    'line' => 112,
    'function' => 'finish',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 597,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Standard',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 154,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)


(write): INSERT INTO `core_sessions` ( `id`, `member_name`, `seo_name`, `member_id`, `ip_address`, `browser`, `running_time`, `login_type`, `member_group`, `current_appcomponent`, `current_module`, `current_controller`, `current_id`, `uagent_key`, `uagent_version`, `uagent_type`, `search_thread_id`, `search_thread_time`, `data`, `location_url`, `location_lang`, `location_data`, `location_permissions`, `theme_id`, `in_editor` ) VALUES ( 'mnfr7mdtla384qbade488rgm7e', '', '', NULL, '34.204.193.85', 'CCBot/2.0 (https://commoncrawl.org/faq/)', 1590777389, 2, '2', 'forums', 'forums', 'topic', 60351, 'CCBot', '2.0', 'browser', 0, 0, '', 'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/', 'loc_forums_viewing_topic', '{"Restringir a um IP":false}', '*', 0, 0 ) ON DUPLICATE KEY UPDATE `id`=VALUES(`id`), `member_name`=VALUES(`member_name`), `seo_name`=VALUES(`seo_name`), `member_id`=VALUES(`member_id`), `ip_address`=VALUES(`ip_address`), `browser`=VALUES(`browser`), `running_time`=VALUES(`running_time`), `login_type`=VALUES(`login_type`), `member_group`=VALUES(`member_group`), `current_appcomponent`=VALUES(`current_appcomponent`), `current_module`=VALUES(`current_module`), `current_controller`=VALUES(`current_controller`), `current_id`=VALUES(`current_id`), `uagent_key`=VALUES(`uagent_key`), `uagent_version`=VALUES(`uagent_version`), `uagent_type`=VALUES(`uagent_type`), `search_thread_id`=VALUES(`search_thread_id`), `search_thread_time`=VALUES(`search_thread_time`), `data`=VALUES(`data`), `location_url`=VALUES(`location_url`), `location_lang`=VALUES(`location_lang`), `location_data`=VALUES(`location_data`), `location_permissions`=VALUES(`location_permissions`), `theme_id`=VALUES(`theme_id`), `in_editor`=VALUES(`in_editor`)

INSERT INTO `core_sessions` ( `id`, `member_name`, `seo_name`, `member_id`, `ip_address`, `browser`, `running_time`, `login_type`, `member_group`, `current_appcomponent`, `current_module`, `current_controller`, `current_id`, `uagent_key`, `uagent_version`, `uagent_type`, `search_thread_id`, `search_thread_time`, `data`, `location_url`, `location_lang`, `location_data`, `location_permissions`, `theme_id`, `in_editor` ) VALUES ( 'mnfr7mdtla384qbade488rgm7e', '', '', NULL, '34.204.193.85', 'CCBot/2.0 (https://commoncrawl.org/faq/)', 1590777389, 2, '2', 'forums', 'forums', 'topic', 60351, 'CCBot', '2.0', 'browser', 0, 0, '', 'https://www.portugal-a-programar.pt/forums/topic/60351-restringir-a-um-ip/', 'loc_forums_viewing_topic', '{"Restringir a um IP":false}', '*', 0, 0 ) ON DUPLICATE KEY UPDATE `id`=VALUES(`id`), `member_name`=VALUES(`member_name`), `seo_name`=VALUES(`seo_name`), `member_id`=VALUES(`member_id`), `ip_address`=VALUES(`ip_address`), `browser`=VALUES(`browser`), `running_time`=VALUES(`running_time`), `login_type`=VALUES(`login_type`), `member_group`=VALUES(`member_group`), `current_appcomponent`=VALUES(`current_appcomponent`), `current_module`=VALUES(`current_module`), `current_controller`=VALUES(`current_controller`), `current_id`=VALUES(`current_id`), `uagent_key`=VALUES(`uagent_key`), `uagent_version`=VALUES(`uagent_version`), `uagent_type`=VALUES(`uagent_type`), `search_thread_id`=VALUES(`search_thread_id`), `search_thread_time`=VALUES(`search_thread_time`), `data`=VALUES(`data`), `location_url`=VALUES(`location_url`), `location_lang`=VALUES(`location_lang`), `location_data`=VALUES(`location_data`), `location_permissions`=VALUES(`location_permissions`), `theme_id`=VALUES(`theme_id`), `in_editor`=VALUES(`in_editor`)

array (
  0 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 587,
    'function' => 'log',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  1 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Db/Db.php',
    'line' => 937,
    'function' => 'preparedQuery',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  2 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Session/Store/Database.php',
    'line' => 77,
    'function' => 'insert',
    'class' => 'IPS\\_Db',
    'type' => '->',
  ),
  3 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Session/Front.php',
    'line' => 317,
    'function' => 'updateSession',
    'class' => 'IPS\\Session\\Store\\_Database',
    'type' => '->',
  ),
  4 => 
  array (
    'function' => 'write',
    'class' => 'IPS\\Session\\_Front',
    'type' => '->',
  ),
  5 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Output/Output.php',
    'line' => 800,
    'function' => 'session_write_close',
  ),
  6 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 172,
    'function' => 'sendOutput',
    'class' => 'IPS\\_Output',
    'type' => '->',
  ),
  7 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Standard.php',
    'line' => 112,
    'function' => 'finish',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
  8 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Front.php',
    'line' => 597,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Standard',
    'type' => '->',
  ),
  9 => 
  array (
    'file' => '/home/pap/www/www-www/public/system/Dispatcher/Dispatcher.php',
    'line' => 154,
    'function' => 'finish',
    'class' => 'IPS\\Dispatcher\\_Front',
    'type' => '->',
  ),
  10 => 
  array (
    'file' => '/home/pap/www/www-www/public/index.php',
    'line' => 13,
    'function' => 'run',
    'class' => 'IPS\\_Dispatcher',
    'type' => '->',
  ),
)