<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 403 error page not using stylesheet or displaying images in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31937#M13674</link>
    <description>&lt;P&gt;Without seeing all the code or even a link to the site it's hard to give a precise answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround why not embed the required images in the 403 page itself using base64 encoding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a free encoder at &lt;A target="_blank" href="http://www.greywyvern.com/code/php/binary2base64"&gt;http://www.greywyvern.com/code/php/binary2base64&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and simple instructions&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2011 16:40:55 GMT</pubDate>
    <dc:creator>Sogo7</dc:creator>
    <dc:date>2011-11-04T16:40:55Z</dc:date>
    <item>
      <title>403 error page not using stylesheet or displaying images</title>
      <link>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31925#M13673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I block access to our site from known spammers/hackers using a htaccess file, at which point a custom 403 error page is shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This page works fine when the user is being blocked because they've tried to access a directory instead of a page, but if they're blocked due to the htaccess file then the stylesheet and company logo are not loaded by the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it was just spammers and the like I wouldn't care, but we will sometimes block genuine users who are using dynamic IP addresses where the IP address was previous used by a spammer etc (actually happened today - luckily the blocked user knows us and emailed us a screen shot).&amp;nbsp; I'd like them to have a 'proper' looking company page so that they know they've come to the right site and are more likely to email us to let us know they are being incorrectly blocked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to modify the htaccess&amp;nbsp;file to allow blocked IP addresses to access&amp;nbsp;our logo and stylesheets so that the 403 error page displays correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not a big or serious problem, but I'd like to fix it if possible - thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 12:03:31 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31925#M13673</guid>
      <dc:creator>Rank_Outsider</dc:creator>
      <dc:date>2011-11-04T12:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: 403 error page not using stylesheet or displaying images</title>
      <link>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31937#M13674</link>
      <description>&lt;P&gt;Without seeing all the code or even a link to the site it's hard to give a precise answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround why not embed the required images in the 403 page itself using base64 encoding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a free encoder at &lt;A target="_blank" href="http://www.greywyvern.com/code/php/binary2base64"&gt;http://www.greywyvern.com/code/php/binary2base64&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and simple instructions&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 16:40:55 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31937#M13674</guid>
      <dc:creator>Sogo7</dc:creator>
      <dc:date>2011-11-04T16:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: 403 error page not using stylesheet or displaying images</title>
      <link>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31941#M13675</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Sogo7, I'd never heard of base64 enoding before, but it looks interesting and I will look into it further - thanks for the tip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for not including links or code - sloppy of me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The web site is &lt;A target="_blank" href="http://www.neotherix.com"&gt;www.neotherix.com&lt;/A&gt; and the 403 page is at&amp;nbsp;&lt;A target="_blank" href="http://www.neotherix.com/403error.php"&gt;http://www.neotherix.com/403error.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of the htaccess file code (i.e. the first few lines) is:&lt;/P&gt;&lt;PRE&gt;order allow,deny
ErrorDocument 404 /404error.php
ErrorDocument 403 /403error.php
ErrorDocument 401 /401error.php
allow from all

deny from 38.100.41           "#  2010-11-22 - email harvester subnet"
deny from 46.4.240.7          "#  2011-03-11 - spam harvester"
deny from 46.4.145.242       "#  2011-04-20 - attempted to hack site"
deny from 46.21.144.176     "#  2011-09-27 - comment spammer"
deny from 69.27.110.130     "#  2011-09-27 - possible hacker"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 18:06:51 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31941#M13675</guid>
      <dc:creator>Rank_Outsider</dc:creator>
      <dc:date>2011-11-04T18:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: 403 error page not using stylesheet or displaying images</title>
      <link>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31943#M13676</link>
      <description>&lt;P&gt;Personally I think you're being to nice to the miscreants, anyhow here's some code that should sort you out or at least point you in a better direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not a block you need but an htaccess&amp;nbsp; redirect, though the same result could be achieved with server side php/asp code included in all sensitive pages. Checking the referer / userAgent string signature may also be useful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# permanently redirect&amp;nbsp; IP ranges request for entire site&lt;BR /&gt;Options +FollowSymlinks&lt;BR /&gt;RewriteEngine on&lt;BR /&gt;RewriteCond %{REMOTE_HOST} 22\.22\.22 [or]&lt;BR /&gt;RewriteCond %{REMOTE_HOST} 68\.33\.44 [or]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---- leave thr OR off the last one&lt;BR /&gt;RewriteRule ^.*$ &lt;A target="_blank" href="http://www.destinationwebsite.com/"&gt;http://www.destinationwebsite.com/&lt;/A&gt; [R=403,L]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Alternatively change the last line to something like this...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;# send em to a hellish website of your choice&lt;BR /&gt;RewriteRule ^.*$ &lt;A target="_blank" href="http://www.hellish-website.com"&gt;http://www.hellish-website.com&lt;/A&gt; [R,L]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Or, to send em to a virtual blackhole of fake email addresses:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;# send em to a virtual blackhole of fake email addresses&lt;BR /&gt;RewriteRule ^.*$ &lt;A target="_blank" href="http://english-61925045732.spampoison.com"&gt;http://english-61925045732.spampoison.com&lt;/A&gt; [R,L]&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 20:00:05 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/31943#M13676</guid>
      <dc:creator>Sogo7</dc:creator>
      <dc:date>2011-11-04T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: 403 error page not using stylesheet or displaying images</title>
      <link>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/32139#M13677</link>
      <description>&lt;P&gt;Thank you again Sogo7. &amp;nbsp;Sorry to take so long to reply to your last post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree with you that my first instinct is to redirect these IP addresses somewhere unpleasant or somewhere that might poison spammers' databases with fake email addresses, however I don't want to risk sending the small number of geniune users that may be unfairly excluded (the one we know about it a Vice President for a company we work with!).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Therefore I like the idea of the base64 encoding the best, although will keep your other suggestions in mind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am thinking of dispensing with a manually compiled .htaccess file anyway and using&amp;nbsp;Http:BL to reject IP addresses based on their score in Project Honey Pot's database. &amp;nbsp;It takes up too much of my time and is a reactive rather than proactive approach.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rank_Outsider&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2011 11:30:10 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/403-error-page-not-using-stylesheet-or-displaying-images/m-p/32139#M13677</guid>
      <dc:creator>Rank_Outsider</dc:creator>
      <dc:date>2011-11-11T11:30:10Z</dc:date>
    </item>
  </channel>
</rss>

