html - .htaccess edit for allowing a URL -


via ip deny manager within cpanel, correct lines of code added .htaccess file in root dir.

but don't default 403 error. rather have display image can customize , message error served denied visitors.

i added errordocument line link html file using. how setup wordpress site.

order allow,deny allow

errordocument 403 http://www.mydomain.com/403.htm

[ip here] [ip here] etc...

with line added, attempt serve page, looks there redirect loop since files denied, can't serve page. since want use image within .htm page think blocked unless served url outside of website.

is there way add code allow these blocked ip's have access 2 url paths? 1 403.htm page @ root, , .jpg use in page stored @ root?

i think solve issue , allow me serve page , graphic denied ip's.

thanks in advance!

with errordocument directive in /.htaccess as

errordocument 403 /403.htm 

try allowing access using

<filesmatch "403\.(htm|jpg)$">   order allow, deny   allow </filesmatch> 

with both html , image file named 403 (or else may like).


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -