WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] Request exceeded the limit of 10 internal redirects (23 posts)

  1. cito
    Member
    Posted 1 year ago #

    My Website: http://www.dude-suit.net

    Bulletproof security seemingly works perfect with everything but how these newer image websites work now.

    images.google.com
    images.search.yahoo.com
    http://www.bing.com/images

    So this is only time I am getting errors, I've tried the copy/paste trick on BPS's website but it doesn't work and I'm still receiving these errors.

    Someone searches on the above sites for an image, and lets say I get lucky and they find an image of mine. They click the image preview. Normally it will show the image and beneath the image or underneath the image there will be a preview of the site the image came from.

    This is what is causing my troubles.

    If someone finds an image on my site on the above image search engines I get the error message in my error.log

    Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

    On Yahoo images it shows the image fine, but at the bottom where the site is usually shown where the image originates gives this error:

    Forbidden

    You don't have permission to access /2011/05/my-soundcloud/akai-lpk25-lpd8/ on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Ok so I searched BPS' website and found a generic .htaccess rule you can copy/paste that should fix the problem

    so I copy and pasted this into my htaccess from inside the wordpress BPS section

    # .htaccess Fix for Infinite Loops
    RewriteEngine On
    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* - [L]

    But I am still getting the error

    So here is a direct search to see the error

    this is from Yahoo
    http://images.search.yahoo.com/images/view;_ylt=A0PDoS.E.BpRQA4AACuJzbkF;_ylu=X3oDMTBlMTQ4cGxyBHNlYwNzcgRzbGsDaW1n?back=http%3A%2F%2Fimages.search.yahoo.com%2Fsearch%2Fimages%3Fp%3Dakai%2Blpd%2B25%26n%3D30%26ei%3Dutf-8%26y%3DSearch%26tab%3Dorganic%26ri%3D1&w=593&h=376&imgurl=www.dude-suit.net%2Fwp-content%2Fuploads%2Fakai-lpk25-lpd8.jpg&rurl=http%3A%2F%2Fwww.dude-suit.net%2F2011%2F05%2Fmy-soundcloud%2Fakai-lpk25-lpd8%2F&size=62.5+KB&name=My+Soundcloud+%3Cb%3EAkai+%3C%2Fb%3ELPK+%3Cb%3E25+%3C%2Fb%3E%26+%3Cb%3ELPD+%3C%2Fb%3E8+%E2%80%93+A+Dysfunctional+Playground&p=akai+lpd+25&oid=9e5e7e64b34977c3489bf85eea17c370&fr2=&fr=&tt=My%2BSoundcloud%2B%253Cb%253EAkai%2B%253C%252Fb%253ELPK%2B%253Cb%253E25%2B%253C%252Fb%253E%2526%2B%253Cb%253ELPD%2B%253C%252Fb%253E8%2B%25E2%2580%2593%2BA%2BDysfunctional%2BPlayground&b=0&ni=144&no=1&ts=&tab=organic&sigr=11vt7j32e&sigb=132ms4dne&sigi=11oes3frg&.crumb=n2uyxy7ZeBt

    That link shows the image then shows a error 500 on the webpage

    in my error logs I get this

    ==> error.log <==
    [Tue Feb 12 16:44:59 2013] [error] [client 75.91.69.144] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://images.search.yahoo.com/images/view;_ylt=A0PDoS.E.BpRQA4AACuJzbkF;_ylu=X3oDMTBlMTQ4cGxyBHNlYwNzcgRzbGsDaW1n?back=http%3A%2F%2Fimages.search.yahoo.com%2Fsearch%2Fimages%3Fp%3Dakai%2Blpd%2B25%26n%3D30%26ei%3Dutf-8%26y%3DSearch%26tab%3Dorganic%26ri%3D1&w=593&h=376&imgurl=www.dude-suit.net%2Fwp-content%2Fuploads%2Fakai-lpk25-lpd8.jpg&rurl=http%3A%2F%2Fwww.dude-suit.net%2F2011%2F05%2Fmy-soundcloud%2Fakai-lpk25-lpd8%2F&size=62.5+KB&name=My+Soundcloud+%3Cb%3EAkai+%3C%2Fb%3ELPK+%3Cb%3E25+%3C%2Fb%3E%26+%3Cb%3ELPD+%3C%2Fb%3E8+%E2%80%93+A+Dysfunctional+Playground&p=akai+lpd+25&oid=9e5e7e64b34977c3489bf85eea17c370&fr2=&fr=&tt=My%2BSoundcloud%2B%253Cb%253EAkai%2B%253C%252Fb%253ELPK%2B%253Cb%253E25%2B%253C%252Fb%253E%2526%2B%253Cb%253ELPD%2B%253C%252Fb%253E8%2B%25E2%2580%2593%2BA%2BDysfunctional%2BPlayground&b=0&ni=144&no=1&ts=&tab=organic&sigr=11vt7j32e&sigb=132ms4dne&sigi=11oes3frg&.crumb=n2uyxy7ZeBt

    ==> access.log <==
    75.91.69.144 - - [12/Feb/2013:16:44:59 -0500] "GET /wp-content/uploads/akai-lpk25-lpd8.jpg HTTP/1.1" 500 515 "http://images.search.yahoo.com/images/view;_ylt=A0PDoS.E.BpRQA4AACuJzbkF;_ylu=X3oDMTBlMTQ4cGxyBHNlYwNzcgRzbGsDaW1n?back=http%3A%2F%2Fimages.search.yahoo.com%2Fsearch%2Fimages%3Fp%3Dakai%2Blpd%2B25%26n%3D30%26ei%3Dutf-8%26y%3DSearch%26tab%3Dorganic%26ri%3D1&w=593&h=376&imgurl=www.dude-suit.net%2Fwp-content%2Fuploads%2Fakai-lpk25-lpd8.jpg&rurl=http%3A%2F%2Fwww.dude-suit.net%2F2011%2F05%2Fmy-soundcloud%2Fakai-lpk25-lpd8%2F&size=62.5+KB&name=My+Soundcloud+%3Cb%3EAkai+%3C%2Fb%3ELPK+%3Cb%3E25+%3C%2Fb%3E%26+%3Cb%3ELPD+%3C%2Fb%3E8+%E2%80%93+A+Dysfunctional+Playground&p=akai+lpd+25&oid=9e5e7e64b34977c3489bf85eea17c370&fr2=&fr=&tt=My%2BSoundcloud%2B%253Cb%253EAkai%2B%253C%252Fb%253ELPK%2B%253Cb%253E25%2B%253C%252Fb%253E%2526%2B%253Cb%253ELPD%2B%253C%252Fb%253E8%2B%25E2%2580%2593%2BA%2BDysfunctional%2BPlayground&b=0&ni=144&no=1&ts=&tab=organic&sigr=11vt7j32e&sigb=132ms4dne&sigi=11oes3frg&.crumb=n2uyxy7ZeBt" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0"

    ==> error.log <==
    [Tue Feb 12 16:45:09 2013] [error] [client 75.91.69.144] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://images.search.yahoo.com/images/view;_ylt=A0PDoS.E.BpRQA4AACuJzbkF;_ylu=X3oDMTBlMTQ4cGxyBHNlYwNzcgRzbGsDaW1n?back=http%3A%2F%2Fimages.search.yahoo.com%2Fsearch%2Fimages%3Fp%3Dakai%2Blpd%2B25%26n%3D30%26ei%3Dutf-8%26y%3DSearch%26tab%3Dorganic%26ri%3D1&w=593&h=376&imgurl=www.dude-suit.net%2Fwp-content%2Fuploads%2Fakai-lpk25-lpd8.jpg&rurl=http%3A%2F%2Fwww.dude-suit.net%2F2011%2F05%2Fmy-soundcloud%2Fakai-lpk25-lpd8%2F&size=62.5+KB&name=My+Soundcloud+%3Cb%3EAkai+%3C%2Fb%3ELPK+%3Cb%3E25+%3C%2Fb%3E%26+%3Cb%3ELPD+%3C%2Fb%3E8+%E2%80%93+A+Dysfunctional+Playground&p=akai+lpd+25&oid=9e5e7e64b34977c3489bf85eea17c370&fr2=&fr=&tt=My%2BSoundcloud%2B%253Cb%253EAkai%2B%253C%252Fb%253ELPK%2B%253Cb%253E25%2B%253C%252Fb%253E%2526%2B%253Cb%253ELPD%2B%253C%252Fb%253E8%2B%25E2%2580%2593%2BA%2BDysfunctional%2BPlayground&b=0&ni=144&no=1&ts=&tab=organic&sigr=11vt7j32e&sigb=132ms4dne&sigi=11oes3frg&.crumb=n2uyxy7ZeBt

    ==> access.log <==
    75.91.69.144 - - [12/Feb/2013:16:45:09 -0500] "GET /2011/05/my-soundcloud/akai-lpk25-lpd8/ HTTP/1.1" 500 515 "http://images.search.yahoo.com/images/view;_ylt=A0PDoS.E.BpRQA4AACuJzbkF;_ylu=X3oDMTBlMTQ4cGxyBHNlYwNzcgRzbGsDaW1n?back=http%3A%2F%2Fimages.search.yahoo.com%2Fsearch%2Fimages%3Fp%3Dakai%2Blpd%2B25%26n%3D30%26ei%3Dutf-8%26y%3DSearch%26tab%3Dorganic%26ri%3D1&w=593&h=376&imgurl=www.dude-suit.net%2Fwp-content%2Fuploads%2Fakai-lpk25-lpd8.jpg&rurl=http%3A%2F%2Fwww.dude-suit.net%2F2011%2F05%2Fmy-soundcloud%2Fakai-lpk25-lpd8%2F&size=62.5+KB&name=My+Soundcloud+%3Cb%3EAkai+%3C%2Fb%3ELPK+%3Cb%3E25+%3C%2Fb%3E%26+%3Cb%3ELPD+%3C%2Fb%3E8+%E2%80%93+A+Dysfunctional+Playground&p=akai+lpd+25&oid=9e5e7e64b34977c3489bf85eea17c370&fr2=&fr=&tt=My%2BSoundcloud%2B%253Cb%253EAkai%2B%253C%252Fb%253ELPK%2B%253Cb%253E25%2B%253C%252Fb%253E%2526%2B%253Cb%253ELPD%2B%253C%252Fb%253E8%2B%25E2%2580%2593%2BA%2BDysfunctional%2BPlayground&b=0&ni=144&no=1&ts=&tab=organic&sigr=11vt7j32e&sigb=132ms4dne&sigi=11oes3frg&.crumb=n2uyxy7ZeBt" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0"

    This error ONLY occurs when searching an image on my site from
    images.google.com
    images.search.yahoo.com
    http://www.bing.com/images

    if you use the search bar on my website directly there is no error

    I've combed my error logs over the past few months and there are NO errors as far as anything else is concerned.

    The only time I get any errors is when someone searches the above image search engines and clicks on an image hosted by my server, it shows the image but it throws an error 500 to the user searching when they see the website preview underneath the image.

    Screenshot of Error from Yahoo: http://image.dude-suit.net/albums/userpics/10002/imagesearcherror.PNG

    Screenshot of my error.log: http://image.dude-suit.net/albums/userpics/10002/internalredirecterror.PNG

    Here's a copy of my .htaccess file currently used in my http://www.dude-suit.net/ root directory

    http://www.dude-suit.net/cito/files/htaccess.txt

    If anyone can help me I'd greatly appreciate it.

    I have no trouble with anything else, the site works great, the plugin works fine, it's only with image search engines do I have this problem, so it's not a great big deal, but I'd like to fix the problem at least as I really hate unnecessary errors being generated.

    As you can see in the htaccess.txt (i placed that in another location and renamed the copy txt for debugging and ease of read) I added the generic "infinite loop" fix I saw posted on the BPS Security website but it's not working for me at all.

    keep in mind again that the only time I have this error is when someone uses an Image based search engine that shows the image then shows a "preview" of the website. It is that "preview" that is throwing a error 500 and giving me the " Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., " error.

    Any help would be greatly appreciated

    http://wordpress.org/extend/plugins/bulletproof-security/

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Wow awesome documentation.!

    This code below only works if the redirect status is 200 OK. You can use other status codes instead of 200, but would not work if you used 403 for the redirect status for this reason - The ErrorDocument directive already has a redirect status of 403 so using {ENV:REDIRECT_STATUS} 403 would not stop an infinite 403 loop. Since you are seeing 500 errors maybe using {ENV:REDIRECT_STATUS} 500 would work, but a 500 error is an Internal Server Error so this means your Server could not process the Request at all so my guess is that the code would not work, but it might.

    # .htaccess Fix for Infinite Loops
    RewriteEngine On
    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* - [L]

    Have you done these BPS troubleshooting steps to confirm that a BPS security filter is causing this issue? If

    1. Make a backup of your .htaccess files using BulletProof Security built-in Backup.
    2. Activate Default Mode on the Security Modes page.
    3. Use the Delete wp-admin .htaccess feature on the Security Modes page.
    4. Test your plugin or theme.
    5. Restore your .htaccess files using BulletProof Security built-in Restore.

    Also this part of the error below does not show an image file name at the end of the URL. This may or may not be normal, but logically you would think that the URL would also contain the image file name too in the URL.

    /2011/05/my-soundcloud/akai-lpk25-lpd8/

    If the infinite loop stops after doing the troubleshooting steps above then try commenting out the BPS root .htaccess security filters one by one to find the security filter that is causing this. Also it may be that you cannot use the ErrorDocument directive on your Server/Host. it appears that this is the case for some folks. So maybe try turning off Error Logging first before doing anything else.

  3. cito
    Member
    Posted 1 year ago #

    As I posted in my original post I tried that code from the bps website for generic loops

    # .htaccess Fix for Infinite Loops
    RewriteEngine On
    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* - [L]

    it doesn't work in my situation. when someone views a "preview" page from an image search engine.

    the error only occurs from an image search engine's Preview window

    for example if you manually go to the image that causes the error on yahoo link in my first post it works fine.

    here is the page the image is located: http://www.dude-suit.net/2011/05/my-soundcloud/akai-lpk25-lpd8/

    And here is direct link to image: http://www.dude-suit.net/wp-content/uploads/akai-lpk25-lpd8.jpg

    so it works manually, I have no trouble with anything other than image search engines causing the loop

    the loop is caused by their preview window. if you go to images.google.com or any of the image search engines in my first post and type a generic query such as dog

    now click the first image you see, you will be shown the image, then a chance to "preview the webpage the image came from"

    that preview is causing my loop problem and the problem goes away if I turn off BPS.

    I only have 3 plugins and none dealing with html, 1 plugin is on top right showing how many listeners on my streaming radio server. then I run tinymce post editor and the add bar for digg/reddit/facebook/etc.

    somehow the image search engine preview window is causing the loop and I can't figure out which rewrite is causing it as I the rewrite rules look like a foreign language to me hehe.

    it's just image search engine preview windows causing the loop
    but i dont know how to stop it. I've set log level to debug and restarted apache but it didn't give any new info. same error message as in the first post.

    and I dont want to turn error messages off, as I like to keep an eye if someone tries to hack the server and I can firewall them or see what caused the error if I have a 404 or something.

  4. cito
    Member
    Posted 1 year ago #

    btw I added rewritelog to my apache.conf

    here is the error log from yahoo image search test

    Link that causes error:
    Link

    Or go to http://images.search.yahoo.com
    do a search for Akai LPK25 dude and click the image for dude-suit.net
    it will show the image but the preview will throw ERROR 500

    now look in the rewrite log file, that is what happens when an image search tries to preview my site from an image search engine with BPS turned on.

    seeing the direct info in rewrite log is there anything I can do to fix the code so image search engines will work with bps?

    Rewrite.log
    http://cito.allmysh-t.com/rewritelog.txt

  5. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    As I posted in my original post I tried that code from the bps website for generic loops

    that code ONLY works if the redirect status is 200. You are experiencing 403 and 500 status errors so a 200 status does not apply / would have no effect.

    I will look into the preview thing in a bit and see if i can see anything unusual.

  6. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    When i check the images files on yahoo images they are displayed to me correctly and i do not see a 500 error.

  7. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    I don't see a problem at this point. The rewrite log is for another site. is this one of your other sites?

  8. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    And the RewriteLog actually does not show any problems. What i see are standard things like processing the htaccess code is being logged, but there is no indication that something is not working correctly.

    What i assume is happening is something similar that happens with the facebook bot script that retrieves image files. Something about the Header request part of the image retrieval in the script itself has a problem and not the actual image retrieval itself.

  9. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    hmm i did just notice something. on the bottom portion of the yahoo images page it grabs your entire website and shows your website itself. I am assuming this would have something to do with an iframe so maybe the security rules pertaining to iframes would have something to do with this. what is odd is that the error goes away after a few seconds and your site does display.???

  10. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    too funny this was occuring on another website not yours. it appears that your website is not displayed in the frame preview so what i recommend that you do is comment out the root .htaccess security filters 1 by 1 until you find out which one is causing this issue.

  11. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    I checked my site with yahoo images and I don't see any problems. I will keep looking at this, but so far i don't see any problems yet. unless something is not happening that is supposed to happen. ;)

  12. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    oh wait now is see this. what is interesting is that the image retreival works fine so maybe BPS is blocking yahoo from grabbing my site in a preview which is actually something that i prefer. Now that i know what to look for i will be able to give you some sort of answer. Personally i like that my site is not being grabbed. ;)

    Forbidden

    You don't have permission to access /aitpro-blog/297/bulletproof-security-plugin-support/bulletproof-security-wordpress-plugin-support/ on this server.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

  13. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    interesting. When i grab the yahoo images source code and create a page under my XAMPP installation the preview of my site does display. hmm.

  14. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    When i put BPS in Default mode on a test subdirectory site, my main site/root site displays, but not the correct subdirectory site where the image is actually located. hmm. so obviously the yahoo images script is parsing the URLs and not using direct linking.

    So what then happens is a 404 error Page Not Found since Yahoo is looking in the wrong place for the image file. hmmm

  15. cito
    Member
    Posted 1 year ago #

    if you manually go to the url from the image search engine it works but the redirect doesnt.

    so yahoo image search gives an error 500

    http://image.dude-suit.net/albums/userpics/10002/imagesearcherror.PNG

    when that error pops up the spam in rewritelog is what happens on my site.

    I only run 1 site http://www.dude-suit.net that rewrite log is for my site.

    I saw on google how to turn rewrite log on to see what's happening

    thats the SPAM in rewrite log when I refresh yahoo images.

  16. cito
    Member
    Posted 1 year ago #

    as you can see Yahoo image preview as well as bing and google image previews give error 500.

    but i get internal loop errors in apache error log

    and of course that is the spam of content in rewrite log that occurs when I click refresh on yahoo images

    tons of 403's and such

    http://cito.allmysh-t.com/rewritelog.txt

    you can see the loop in my log file there.

    that is a file hosting site, I stored the rewritelog text file for dude-suit.net over on the filehost site.

    that rewrite log is from dude-suit

    everytime I refresh yahoo images this loop happens http://cito.allmysh-t.com/rewritelog.txt

    I can see the loop error in the log from BPS

    see in that log each loop is numbered, the pattern provided is causing a loop from image search engine previews.

  17. cito
    Member
    Posted 1 year ago #

    i stripped out the leading ip address and domain from part of the loop in rewrite log

    this is what is looping in the log when the image search causes the "Request exceeded the limit of 10 internal redirects"

    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '^(.*)$' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] strip per-dir prefix: /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/ -> 2011/05/my-soundcloud/akai-lpk25-lpd8/
    (3) [perdir /var/www/wordpress/] applying pattern '.' to uri '2011/05/my-soundcloud/akai-lpk25-lpd8/'
    (3) [perdir /var/www/wordpress/] add path info postfix: /var/www/wordpress/2011 -> /var/www/wordpress/2011/05/my-soundcloud/akai-lpk25-lpd8/

    there's tons more you can see the original in the rewrite log but you can see it's constantly looping applying this "." pattern

  18. cito
    Member
    Posted 1 year ago #

    then it hits [perdir /var/www/wordpress/] forcing responsecode 403 for /var/www/wordpress/2011

    and starts looping again all in 1 huge block of spam in the rewrite log

    then it kicks the "request exceeded limit of 10 internal redirects" error to var/log/apache2/error.log when the spam loop reaches 10 loops in rewritelog

    there's some rule in the bps .htaccess rewrite that is causing image search preview iframes to loop

  19. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Ok i found the security filter.

    If you want your site to display in the preview then comment out this security filter in the root htaccess file by putting a pound sign in front of it #.

    #RewriteCond %{HTTP_REFERER} (%0A|%0D|%27|%3C|%3E|%00) [NC,OR]

    And the URL parsing issue only occurred on my XAMPP testing site so the actual correct site does display after commenting out the security filter above.

  20. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    The security violation is that %3C and %3E are being used in the Referer string so you can just remove those and not have to comment out the entire security filter if you want to go that route.

    this works fine

    RewriteCond %{HTTP_REFERER} (%0A|%0D|%27|%00) [NC,OR]
  21. cito
    Member
    Posted 1 year ago #

    That fixed it!

    the image search site preview window works now.

    May I ask what that line actually does? I don't speak "rewrite config"
    hehe

    But that seems to have fixed the problem no more "exceeded the limit of 10" redirects

    and no more loop spam in the rewrite log

    and testing the yahoo image link preview works now with no error 500's

    thank you again I'll have to copy this to a text file for future use in case problem occurs on future upgrades or whatnot.

    just curious what that specific rewrite rule actually is doing and why it caused my problem?

    again thank you

    Edited to add: Ok I left the line and only took out the "3C 3E" part only, retested and still fixed... again I appreciate all the help

  22. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    The condition says to not allow certain coding characters that are considered unsafe in a Referer string, but I think allowing the angle brackets < > in a Referer string is not that big a deal. Allowing the angle brackets in a Query string security filter would be a big deal. ;)

    Actually it was just the website preview that was not being grabbed. The images were are retrieved successfully with or without the security rule modification. Personally I actually like that fact, but for the type of site you have you would probably want both your site and image files to be grabbed.

  23. Miz.Michele
    Member
    Posted 1 year ago #

    I had the same issue and it appears to now be solved. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic