Skip to main content
RippUSA
New Member
Jun 27, 2012 6:18 PM UTC
Question

Cannot delete web filter override

I have a Fortigate 200B running Firmware Version 4.0 MR3 Patch 3. When I try to delete several entries I have made in UTM Profiles\Web Filter\Rating Overrides I get an error " Invalid Lentgh of entry" and cannot delete them. I can still delete some entries just not very specific " longer" entries. I have looked through the CLI handbook to see if there was a way to do it that way but was unsuccessful. How do I delete these unwannted entries when I receive this error??[>:]

    11 replies

    ede_pfau
    SuperUser
    SuperUser
    Jun 28, 2012 6:11 AM UTC
    hi, welcome to the forums. You can try to delete the entries in the CLI:
     config webfilter ftgd-ovrd-user     delete " some&StickyEntry"   end  
    Use quotes around the object' s name even if it doesn' t contain spaces. If that doesn' t help there' s a ' purge' command available...that clears all overrides. To see all commands available just type ' ?' .
    Translate
    RippUSA
    RippUSAAuthor
    New Member
    Jun 29, 2012 7:26 PM UTC
    Thanks for the quick response. I have a " ?" in the entry itself. When I try to type the CLI command to delete it, the Fortigate returns the cursor and errors out as error code -651. The unit automatically thinks I am asking for help as soon as a type a question mark (?). I was going to try and copy and paste the entry into the delete command on the CLI interface. However, when I double click on the entry in the GUI interface to copy the line, I get an " entry not found" . So maybe it was deleted through the GUI when I tried that way but is somehow caching information back to the screen from somewhere. May have to purge everything and re-enter all the overrides?!
    Translate
    rwpatterson
    New Member
    Jun 29, 2012 8:43 PM UTC
    Have you tried putting quotes around the name?
    Translate
    pchechani_FTNT
    Staff
    Staff
    Jun 29, 2012 11:48 PM UTC
    when I double click on the entry in the GUI interface to copy the line, I get an " entry not found" .
    So when you list the entries in CLI, were you able to see that entry.
    Translate
    ede_pfau
    SuperUser
    SuperUser
    Jun 30, 2012 2:34 PM UTC
    Quotes won' t help you in this case. There' s a secret workaround for it: type ' Ctrl-V' , then ' ?' Psst, don' t tell anybody. Another support case Fortinet will not have to solve.
    Translate
    RippUSA
    RippUSAAuthor
    New Member
    Jul 3, 2012 4:48 PM UTC
    Thanks ede_pfau I was able to " Cntrl-C" and " Cntrl-V" the actual line in the Web Filter Override and paste it into the CLI. However, when I pasted it in...it removed the " ?" automatically in the linefrom the clipboard. So I even tried copying a question mark from word and tried pasting it in the middle of the line and it will not let me paste a " ?" . Weird. And yes pchechani I put it all in quotes and even tried deleting without the " ?" and I get error code -651. Any other ideas? I have included a shout of the web filter override for all.
    Translate
    pchechani_FTNT
    Staff
    Staff
    Jul 3, 2012 6:28 PM UTC
    " ?" represents the help. And that is why even when you copy pasting, when " ?" character is there, you see a line break and some related error message displayed. Now what ede_pfau has mentioned is correct, you dont' have to copy paste the complete string, but whereever you have to put " ?" you need to first give command ctrl-v and then type " ?" and then rest of the string. I feel that is little complicated but that is the fastest way to type " ?" on CLI. Other way is you can restore the config after removing those entries. Hope this helps resovling your issue.
    Translate
    ede_pfau
    SuperUser
    SuperUser
    Jul 4, 2012 9:01 AM UTC
    I wrote ' type Ctrl-V, then ?' and I meant it. This has nothing to do with other uses of Ctrl-V in Windows - we' re on a FGT command line and not in Windows. Typing ' Ctrl-V' immediately before any special character will enter that character literally in the CLI.
    Translate
    rwpatterson
    New Member
    Jul 5, 2012 1:10 PM UTC
    Can those entries be deleted by number?
    Translate
    RippUSA
    RippUSAAuthor
    New Member
    Jul 16, 2012 3:46 PM UTC
    No I have tried deleting by number also. Did not work. Nice response ede-pfau...it is responses like that that keep people away from " asking for help" . Obviously " you meant it" ! Anyway, still can' t delete the items. Thanks all for trying.
    Translate
    ede_pfau
    SuperUser
    SuperUser
    Jul 16, 2012 4:08 PM UTC
    Typing ' Ctrl-V' immediately before any special character will enter that character literally in the CLI.
    C' mmon, that' s the most unambiguous it could ever be. Just wanted to make clear that using Ctrl-V in this context is unrelated to the ' paste' action you mentioned. But I can understand if you' re frustrated by now.
    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024